Vue · Junior · Question 63 of 75

How should a prop declared as userName be written in a parent template?

Explanation

Props are declared in camelCase in JavaScript, and kebab-case in templates matches HTML attribute conventions.

Further reading

Problem with a question

Vue · Junior · question 63

Test yourself

Take the Vue · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz