This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
createRef API like React 16.3 #70
Labels
feature: planned
A feature that's been accepted into the project's roadmap.
React 16.3+ exposes a new ref API that's intended to be the default instead of the callback refs that both React and Roact have.
I've found that a lot of users new to the React model try to do things like call
setState
inside refs, or do all sorts of trickery inside of them, when they really should be doing those things indidMount
instead.Switching the recommended API to a
createRef
-like API would prevent these issues in the future.The text was updated successfully, but these errors were encountered: