Complete the code to create a reactive object named state.
import { reactive } from 'vue'; const state = [1]({ count: 0 });
Use reactive to create a reactive object in Vue.
Complete the code to update the count property reactively.
state.[1] = 5;
Access the property count directly on the reactive object to update it.
Fix the error in the code to correctly create a reactive object.
const state = reactive([1]);The argument to reactive must be an object literal with curly braces.
Fill both blanks to create a reactive object with a nested property and update it.
const state = reactive({ user: { name: 'Alice' } });
state.user.[1] = [2];Update the nested property name to the new value 'Bob'.
Fill all three blanks to create a reactive object and add a new property reactively.
const state = reactive({ count: 0 });
state.[1] = [2];
console.log(state.[3]);Add a new reactive property message with value 'Hello' and log it.
