Skip to content

Add a DOM measurement recipe to Hooks FAQ #1843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 19, 2019

Conversation

gaearon
Copy link
Member

@gaearon gaearon commented Mar 19, 2019

This keeps coming up. The first impulse is to useRef + useLayoutEffect but they're actually not what you want. So I documented it.

@reactjs-bot
Copy link

reactjs-bot commented Mar 19, 2019

Deploy preview for reactjs ready!

Built with commit f058d35

https://deploy-preview-1843--reactjs.netlify.com

Copy link
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of nits, but looks good.

Sunil Pai and others added 2 commits March 19, 2019 15:27
Co-Authored-By: gaearon <dan.abramov@gmail.com>
Co-Authored-By: gaearon <dan.abramov@gmail.com>
@gaearon gaearon merged commit 806da34 into reactjs:master Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants