Level 30
You should assign your props to a variable in order to use them within the script tag. This is not required in the template itself. See the Vue documentation for more information.
<script setup>
import { Head, Link } from '@inertiajs/vue3'
const props = defineProps({
canLogin: {
type: Boolean
},
canRegister: {
type: Boolean
},
artists: {
type: Array
}
})
console.log(props.artists)
</script>