DEV Community

Discussion on: Core building blocks of React

Collapse
 
sabbin profile image
Sabin Pandelovitch

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

Collapse
 
tringakrasniqi profile image
Tringa Krasniqi

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.