Put in order · Vue.js course · Module 3: Reactivity

State architecture in a component

Arrange the steps for designing state in a component in the correct order.

Items to put in order

  • Identify what data the component needs
  • Create reactive variables in setup
  • Expose variables to the template
  • Choose the right tool (ref/reactive)

You can check the correct answer by solving this task in the CodeWorlds game.