Is possible to use refs without the value property? #5989
Unanswered
JenuelDev
asked this question in
Help/Questions
Replies: 1 comment 4 replies
-
You can use the Reactivity Transform in <script setup>
let myData = $ref('this is data');
onMounted(() => {
console.log(myData) // no .value needed here
});
<script> |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if vue can use ref or computed to not use the value property.
sample:
Beta Was this translation helpful? Give feedback.
All reactions