How can you update the state of a component in React? | State and Props | react Interview Questions | NextRound.in