diff --git a/snippets/Toggle.md b/snippets/Toggle.md index fdd1ec0fc..41c378b99 100644 --- a/snippets/Toggle.md +++ b/snippets/Toggle.md @@ -5,14 +5,14 @@ tags: components,state,beginner Renders a toggle component. -- Use the `React.useState()` to initialize the `isToggleOn` state variable to `false`. +- Use the `React.useState()` to initialize the `isToggleOn` state variable to `defaultToggled`. - Use an object, `style`, to hold the styles for individual components and their states. - Return a ` ); -} +}; ``` ```jsx