What is the Context API?
An alternative way to working with state in React.
A way to change the execution context of a function in JavaScript.
When working with useState to keep state in a variable, you should not use array destructuring.
True
False
If a state variable is destructured from useState, and set to variable name of
user
, the name of the function to update theuser
state variable should be...setUser
useState
userSetter
useUser
What does the concept of “lifting up state” entail?
It involves moving the state from the parent component to the child component.
It involves moving the state from the child component to the parent component.
What is a negative result of lifting up state in a React app?
It can significantly increase the number of components that you need to create.
There are no negatives from lifting up state in React.
Prop drilling.