shawn-yee / setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vite-starter-ref-sugar

Nightly Build

Vite starter template for the new <script setup> and ref sugar RFC. Powered by Knightly

⚠️ Please note the feature is currently still in pending RFC phrase which means nothing has set in stone yet. This starter template is just for experimenting purposes.

<script setup>
import { computed } from 'vue'

ref: count = 0
ref: doubled = computed(() => count * 2)

const inc = () => count++
</script>

Usage

Install the dependencies

you need to use yarn or pnpm, npm won't work for some reason

yarn # pnpm i

Start the server

yarn dev # pnpm run dev

About


Languages

Language:Vue 32.0%Language:HTML 31.7%Language:CSS 23.3%Language:JavaScript 13.0%