DEV Community

Discussion on: The React Hook Proposal

Collapse
 
nickytonline profile image
Nick Taylor

Haven't tried it out yet, but was listening to a brief overview from Kent C. Dodds and one example that comes to mind is componentDidMount (sync) vs useEffect (async), so there appears to be performance benefits to using hooks.

I'd also guess that since everything is a function now, it would be easy to mock hooks via jest, if necessary.

Gonna get back to day 1's live stream now 😉