Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 608 Bytes

File metadata and controls

15 lines (9 loc) · 608 Bytes

ComponentsReactHooks

Demonstrates how to nest one React Hooks-based component inside another and send props from the parent to the child component.

Expected Behavior:

Browser

Clicking the "On/Off" button in the child will toggle the button's label and update the parent component's toggle count. If the user clicks the "Check now" button in the parent, the parent will update its cache of the button state. The parent will also display how many times it has been rendered.

Dependencies Used:

react react-dom