DEV Community

React Hooks explained as simply as I humanly can

Joshua Byrd on February 15, 2019

Hooks let you do more things with function components. You can use state with the useState() hook. eg. const [count, setCount] = useState(0). ...
Collapse
 
huyduy profile image
Huy Duy

I just start learning React, I don't know if Hooks is a really important part to learn or not 😶

Collapse
 
kayis profile image
K

Depends on why you learn it.

If you have to maintain an older project, then I think hooks aren't important to get started.

If you start a new project, it could be wise to build it with hooks right away.

Collapse
 
httpjunkie profile image
Eric Bishard

Amen my brother!

Collapse
 
akado117 profile image
Alex

As someone who has used React for years. Hooks make your code more modular and reusable. It also removes a ton of boiler plate. If you're learning right now. It's probably best to keep with hooks. Then learn the old school way and compare how you feel with either.

Collapse
 
qzsg profile image
Adrian

Its even better to learn Hooks if u are starting from the beginning

Collapse
 
arswaw profile image
Arswaw

I'd like to rebuild my personal website in React. Maybe hooks will be useful.

Collapse
 
httpjunkie profile image
Eric Bishard • Edited

Check out my stuff, would love feedback...
React Hooks Writings and Presentations