implement-react-hooks
implement-react-hooks copied to clipboard
A simplified implementation of two of the most important react hooks - useState and useEffect. Original link for the article: https://medium.com/swlh/learn-by-implementing-reacts-usestate-and-useeff...
Results
1
implement-react-hooks issues
Sort by
recently updated
recently updated
newest added
https://github.com/rohitpotato/implement-react-hooks/blob/be021ac9dfafc84d91d62f280fcb979e703cc4f1/hooks.js#L54 According to react, the effect is run after the render and commit finishes but this code is calling cb in the body of useEffect itself.