Put in order · Vue.js course · Module 7: Props & Events
One-way data flow
Arrange the one-way data flow in Vue:
Items to put in order
- Parent passes data as props to child
- Parent defines reactive state (ref/reactive)
- Child emits an event when it wants to change data
- Parent updates state in the event handler
- Child displays data (read-only)
You can check the correct answer by solving this task in the CodeWorlds game.