Skip to content

Latest commit

 

History

History

ComponentsInputReactHooks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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