It should be specified that in functional components the state is available via useState hook and not with this
.state. Also there should be some references to React Hooks due to the fact that that is the current way of doing things
I tried my best to keep things as simple as possible and not mention Hooks or anything else and not explaining them. I implied that function-based components were originally created for display only (well, until Hooks came on the way). But, I will definitely add a link to React Hooks to anyone that is interested to know more.
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.
It should be specified that in functional components the state is available via
useState
hook and not withthis
. Also there should be some references to React Hooks due to the fact that that is the current way of doing things.state
Thank you a lot for your feedback :)
I tried my best to keep things as simple as possible and not mention Hooks or anything else and not explaining them. I implied that function-based components were originally created for display only (well, until Hooks came on the way). But, I will definitely add a link to React Hooks to anyone that is interested to know more.