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.
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.
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
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.
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.
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.
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