EpicReact.dev

Welcome to the EpicReact.dev Workshop app!

This is the deployed version. Run locally for full experience.
Join EpicReact.devβ†—οΈŽLogin
21
Slots β€” Slot Prop
21

04. Slots/03. Slot Prop (🏁 solution)

Slot Prop

β–ˆ<
Loading "Slot Prop (🏁 solution)"
β–ˆ<
Slot Prop (🏁 solution) β†—οΈŽ
Run locally for transcripts
πŸ‘¨β€πŸ’Ό Great! Now we can use the same component for multiple slots!
One thing to note is that there's not a great way to have good type safety on these props, though if you're creative, you could add nice runtime errors, for example.
← PreviousNext β†’
Edit on GitHubEdit this page on GitHub
playgroundproblemsolutiontestsdiffchat
β–ˆ<
Loading "Slot Prop"
β–ˆ<