What values can you store in react state?

PHOTO EMBED

Sat Jun 18 2022 11:41:05 GMT+0000 (Coordinated Universal Time)

Saved by @mehran1801 #react.js



Question:

What values can you store in state?
Answer

A React component’s state is a plain JavaScript object, so it can store any valid value that is storable within a JavaScript object. This includes booleans, strings, numbers, and even other objects which you can nest within the state.
content_copyCOPY