Skip to content
RED SAG Skills
easy5 pts · first answer countsreactstatehooks

Changing the initial state prop

A component does const [qty, setQty] = useState(props.defaultQty). The parent later changes defaultQty from 1 to 5. What is qty?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions