Question · Vue.js course · Module 3: Reactivity
Mutating reactive - direct
How do you correctly modify a property in a reactive object?
Answer options
- state.value.count++
- state = { count: state.count + 1 }
- state.count++
- setState({ count: state.count + 1 })
You can check the correct answer by solving this task in the CodeWorlds game.