Hello World
Creating a Hello World using Weblabs
$ npm create vite@latest
? Project name: > hello-world
? Select a framework: >
> Vanilla
? Select a variant: >
> Typescript
$ cd hello-world
$ npm i
$ npm i @weblabsjs/core//in main.ts
import { render } from '@weblabsjs/core'
import { p } from '@weblabsjs/core/components'
function HelloWorld() {
return p("Hello World")
}
render("app", HelloWorld())
Last updated