What values can you store in state?

Question

In the context of this exercise, 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.

9 Likes