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

readonly pattern in a component

Arrange the steps for using readonly in a component in the correct order.

Items to put in order

  • Wrap it in readonly()
  • Expose the read-only version to the template
  • Modify the original object when needed
  • Create a reactive object with reactive()

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