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)... [Read Full]
markdown guide
 

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

 

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.

 
 

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.

 

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

 

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

 
code of conduct - report abuse