Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 557 Bytes

File metadata and controls

15 lines (9 loc) · 557 Bytes

ComponentsInputReactHooks

Each time the parent's state updates, it will pass a new prop value into the child, and the child will update accordingly.

Expected Behavior:

Browser

The parent stores an Int as state. Clicking the buttons will increment/decrement that value. The children will display the result of a mathematical computation using that value. The parent will also display how many times it has been rendered.

Dependencies Used:

react react-dom