Question · Vue.js course · Module 9: Composables & VueUse
readonly in Singleton
Why do we use readonly() in a Reactive Singleton?
Answer options
- It prevents direct state modification from outside
- It speeds up rendering
- It is required by TypeScript
- It automatically saves to localStorage
You can check the correct answer by solving this task in the CodeWorlds game.