Welcome to Task 8! Here we will see how to build and integrate our own custom component!
Replace the whole paragraph with your custom component and pass some properties to it.
The name of the component is CustomComponent.vue
and is imported as CustomComponent
.
💡 Tip: Use
title
andcontent
as properties you pass.
In your custom component use defineProps()
to define properties which you want to pass to the component.
If you need help maybe this Link will help you:
https://vuejs.org/guide/components/props
Use the properties you defined in TODO 8.2! Just put them into the <h2>
for the title and <p>
for the content.
📝 Note: If you did not pass
title
andcontent
, you will just have to change the<h2>
and<p>
stuff with your properties.