JavaScript React Basics Understanding State Understanding State Review

Hanwen Zhang
Hanwen Zhang
17,783 Points

Please help with the answer of this question,

Complete the code so that the isConfirmed state updates its value based on the previous state.

confirmGuest = () => { this.setState( prevState => ({ isConfirmed: !___.isConfirmed })); }