The useDimensions Hook
Discover how to create a custom hook that listens for changes in dimensions, a key component for responsive charts.
Members only
4 minutes readThe visualization component is going to be wrapped in a responsive div. We need a way to retrieve this container's dimensions.
To achieve this, let's create a hook called useDimensions.
Oh no! ๐ฑ
This lesson isnโt available just yet.
Take a look at the status badges next to each lesson in the sidebar to see when itโs coming out.
Thanks for your patience! ๐