-
Fork this project to start;
-
In the "Toggle.jsx", when "false" should shows the text "Off to sleep." and "true" should shows the text "On fire for the party!";
-
The text "Off to sleep." should be "blue" and the text "On fire for the party!" show be "red";
-
The initial value should be always "true";
-
Show a title element using "h1" tag with the initial value "Switch Component".
-
In the "App.jsx" should render 3 switches where the first one should have the title "General Controller";
-
The "General Controller" component should share the state and control the others;
-
Include React performance improvements;
-
Don't forget to add tests;
-
Move all files to TypeScript;
g4br13l/pipeChallenge
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
