title: 'React new Example'
}
Suppose the this.setState(nextState) method is called and t">
Consider the current state as following:
{
isHidden: true,
title: 'React new Example'
}
Suppose the this.setState(nextState) method is called and the current state is updated to the following:
{
isHidden: false
}
Which of the following is the correct way in which React will merge these two states?
Correct Answer:
{
isHidden: false,
title: 'React new Example'
}
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More React.js MCQ Questions