scrimba
Frontend Career Path
Advanced React
Reusability
Toggle.Button
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Toggle.Button
Expand for more info
Toggle
Toggle.Button.js
run
preview
console
/**
* Challenge:
*
* 1. Create a ToggleButton component
* 2. Receive the `toggle` function from context (2 parts!)
* 3. Render a div with an onClick that calls `toggle`
*/
Console
/index.html
-6:39