I am making a todo app that has a sidebar and a todo page. I would like to make the page height to full screen and not put a fixed height.
Is it possible to do that with simplebar-react?
I am making a todo app that has a sidebar and a todo page. I would like to make the page height to full screen and not put a fixed height.
Is it possible to do that with simplebar-react?
Copyright © 2021 Jogjafile Inc.
Use
useLayoutEffect()in React, the final code for updating should look like this:and then call dimensions for getting the height and width.