Reactivity, the Composition API, components, routing and state.
Work out the props a component ends up with after defaults are applied.
Write entryPoint(declarations, passed):
declarations maps each declared prop name to an options objectTurn template attributes into the values a child component receives.
Write entryPoint(attributes) where each attribute is
{ "name", "raw", "bound" }:
Implement simplified prop validation warnings.
Write entryPoint(declarations, passed):
declarations maps prop names to { "type", "required"? } whereWhat are props in Vue? Show how a <UserCard> component declares a
name prop in <script setup>, how a parent passes it, and which
direction data flows.
A child component receives a count prop and a button does
props.count++. Vue prints a warning and the value does not stick. Why
must a child not change its props, and what should it do instead?
A <Rating> component declares max: Number. One template says
<Rating max="5" /> and another <Rating :max="5" />. What does the
child receive in each case, and why?