DEV Community

loading...

Discussion on: Beginner's Guide to React

Collapse
devshehata profile image
Mahmoud Shehata

Thanks for the post.
I also want to highlight that functional components can hold 'state' variables with hooks. They won't be called state. But they can act as state...
Add to that using useReducer hook and you get a much readable 'stateful' code.

Collapse
jenkens profile image
Jen Kennedy Author

Thank you for the comment! I've heard of hooks but don't know too much about them. This blog post was motivation for me to write a beginner post and then try and teach myself Hooks and write another blog post with more advanced React features.

Collapse
devshehata profile image
Mahmoud Shehata

Take a look at them.
I'm a beginner and started learning after hooks was released. I rarely write class components now.
Functional components FTW... far much readable and no 'this.' mess anymore