I'm trying to understand whether prop validation is for the developer or the user. I intentionally left a component empty
I did not pass a value (by the way, what is this passed value called?): <card />
The correct way: <card :name="name" />
props:{
name: { default: "John Doe" }
However, when I leave the component empty, without passing a value, Vue uses the default value to populate the value in the template section while leaving an error in the console:
Property or method "name" is not defined on the instance but referenced during render.
What if I want to have a default? I will continue to get that error.