Computer scienceFrontendVue.jsVue 3 SyntaxVue Components

Props

Passing props

Report a typo

You're building a cool weather app, and you need to render the <Day /> component. It should have two props: day (type Number) equal to 1, and sunny (type Boolean) equal to true. Finish that one line that should be inside the template.

<script setup>
import Day from './components/Day.vue'
</script>

<template>
<!-- your code here -->
</template>
Enter a short text
___

Create a free account to access the full topic