Web Development React.js Objective
Sep 28, 2025

Which method is used to update state in class components?

Choose the correct answer:
A) this.state = newState
B) this.setState(newState)
C) this.updateState(newState)
D) this.changeState(newState)
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback