1. State are Internal object of a class it means it is Private we can not access it outside of the class.
2. It is Just like a variable in which we can assign the value in pair of ( key : value)
3.Value of state is can we modify/change. By using setState() function.
4.We can use state in class component only before React version 16.8
5. From React Js version 16.8 we also use in state in function component by using hooks.
Hooks reduce our line of code hooks can we use function component only
Download
0 formats
No download links available.
state in react js#8 | What is state in React Js| How we Update state in ReactJs | NatokHD