Q. Which method sets state with a function?
Solution:
setState(() => {}) allows updating state based on previous state.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
setState(() => {}) allows updating state based on previous state.
Strengthen Your Practice with our comprehensive question bank.