Samuel Burbano
Coding is easy, logically coding is what makes it special.
El equipo de Vue sigue encubando proyectos que benefician a toda la comunidad de desarrollo web
<script setup>
let count = $ref(0)
console.log(count)
function increment() {
count++
}
</script>
<template>
<button @click="increment">{{ count }}</button>
</template>
<script setup>
import { ref } from 'vue'
let count = ref(0)
console.log(count.value)
function increment() {
count.value++
}
</script>
const props = withDefaults(
defineProps<{ foo: number }>(),
{ foo: 1 }
)
props.foo
const {
foo = 1
} = defineProps<{ foo: number }>()
foo // reactive!
// Samuel Burbano
const socials = {
twitter: "@iosamuel",
twitch: "iosamuel",
youtube: "iosamuel",
github: "iosamuel",
web: "iosamuel.dev"
};
By Samuel Burbano