...

/

Multiple useState calls

Multiple useState calls

Let's learn how to manage multiple useState calls and use them in a React component.

We'll cover the following...

With class components, we all got used to setting state values in an object whether it contained a single property or more.

Press + to interact
// single property
state = {
count: 0
}
// multiple properties
state = {
count: 0,
time: '07:00'
}

With useState you may have noticed a subtle ...