DEV Community

Cover image for Understanding the useState Hook in React

Understanding the useState Hook in React

khaled-17 on February 07, 2024

Understanding the useState Hook in React React is a powerful JavaScript library for building user interfaces, and it provides various to...
Collapse
 
kresli profile image
Eduard Jacko

This is nothing else but fundamental stuff what you can read in official docs. You should explain why you can’t have conditional useState, why you need mutate a value within a function and not outside, etc. Very disappointing.

Collapse
 
altesack profile image
Marat Latypov

As I see handleChange will be called on every onChange, so on every formData change the component state will be changed and WHOLE component will be re-rendered? Am I right?

Collapse
 
devpacoluna profile image
Paco Luna
Collapse
 
devpacoluna profile image
Paco Luna

Good basic explanation, but I was hoping for advanced information. Maybe you should think more about your titles. (Because there is deeper info about this topic)