Question · Vue.js course · Module 7: Props & Events
Declaring props in script setup
How do you declare props in <script setup>?
Answer options
- const props = defineProps(['message'])
- props: ['message']
- this.props = ['message']
- export props ['message']
You can check the correct answer by solving this task in the CodeWorlds game.