Skip to content

Commit

Permalink
remove inline toggle component
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 14, 2024
1 parent ac1cbd6 commit 9b75d9d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions exercises/03.compound-components/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,8 @@ it's selected? We can easily add API surface area to support these use cases,
but that's just more for us to code and more for users to learn. That's where
compound components come in really handy!

import { Toggle } from '../07.control-props/01.solution/toggle'

For the rest of the exercises in this workshop, we'll be working with a Toggle
component. Specifically, this one:

<div style={{ display: 'flex', justifyContent: 'center' }}>
<Toggle />
</div>

<link rel="stylesheet" href="/switch.styles.css" />
For the rest of the exercises in this workshop, we'll be working with a simple
`<Toggle />` component.

Every reusable component starts out as a simple implementation for a specific
use case. It's advisable to not overcomplicate your components and try to solve
Expand Down

0 comments on commit 9b75d9d

Please sign in to comment.