Challenge: Building a Renderless Alert Component
Practice what weve learned about the renderless component.
We'll cover the following...
Problem statement
There are different patterns that can be used to create reusable components. Renderless components patterns describe components that don’t render any markup themselves and instead provide specific functionality to the content passed via slots. Your task is to create a renderless Alert
component.
Challenge
You need to create a reusable, renderless Alert
component. This component should render two slots, a default and content. The content slot should ...