You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptsetuplang="ts">import { reactive, isReactive, toRaw, markRaw } from"vue"const state = { count: 1 }const reactiveState =reactive(state)/** * Modify the code so that we can make the output be true.*/console.log(toRaw(reactiveState) ===state)/** * Modify the code so that we can make the output be false.*/const info =markRaw({ count: 1 })const reactiveInfo =reactive(info)console.log(isReactive(reactiveInfo))</script>
<template>
<div>
<p>
{{ reactiveState.count }}
</p>
</div>
</template>
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: