theodorusclarence.com blog

Archives
Subscribe
November 29, 2021

React Core Concept I: Rendering & useState

React Core Concept I: Rendering & useState

We use the useState hook to set a variable in a React component.

But why hook?

Why don't we just use a normal let variable?

This post is made to redefine some of the usually 'missed' concepts in most tutorials, with simple terms and a Vanilla Javascript analogy.

In this post, I decompose the React re-rendering process into 3 steps

Image

This diagram might help you understand deeply about this React Core Concept.

Go ahead and check it out!



React Core Concept I: Rendering & useState | theodorusclarence.com

Do you wonder why do we use hook instead of normal variable? This will help you redefine some concepts.

If you have a question, shoot it up on the blog comment section.

Let me know what you think after you read, by replying to this email. I'll be glad to answer it 😄.

Don't miss what's next. Subscribe to theodorusclarence.com blog:
Powered by Buttondown, the easiest way to start and grow your newsletter.