Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Sep 9, 2024
1 parent 4eb24d9 commit 6a06c06
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions exercises/04.slots/03.problem.prop/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ should have based on which slot they're taking.

In fact, we could do this with the `Switch` as well!

🧝‍♂️ I've added `Text` and `Switch` components to the

<InlineFile file="slots.tsx" /> file for you to use. These are both already wired
up to consume a `slot` named `text` and `switch`. You can
<DiffLink app1={-1}>check the diff</DiffLink> for details.
🧝‍♂️ I've added `Text` and `Switch` components to
the <InlineFile file="slots.tsx" /> file for you to use. These are both already
wired up to consume a `slot` named `text` and `switch`. You
can <DiffLink app1={-1}>check the diff</DiffLink> for details.

What we want to do in this exercise is add a `slot` prop to each of our slot
components so the slot they're taking can be defined by the parent component.
Expand Down

0 comments on commit 6a06c06

Please sign in to comment.