Q. Which method sets state with a function?

A
updateState()
B
setState(() => {})
C
changeState()
D
modifyState()
Solution:

setState(() => {}) allows updating state based on previous state.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!