Q. Which method updates props in a class component?

A
updateProps()
B
setProps()
C
Props are read-only
D
changeProps()
Solution:

Props are read-only and cannot be updated directly.

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!