Creating a 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 read

The 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 is not ready yet.

But we're working hard on it, releasing 1-2 lessons per week. If you're a student, check the discord channel for announcements! (discord logo logo above. )

🙇