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 😉
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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) vsuseEffect(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 😉