UNPKG

create-vanjs

Version:

🍦 Quick tool for scaffolding your first VanJS project

40 lines (34 loc) 832 B
import van from "npm:vanjs-core"; import Counter from "./components/Counter.jsx"; import "./App.css"; export const App = () => { return ( <div> <a href="https://deno.com" target="_blank"> <img src="/vite-deno.svg" class="logo" alt="Deno with Vite logo" width="96" height="96" /> </a> <a href="https://vanjs.org" target="_blank"> <img src="/vanjs.svg" class="logo vanjs" alt="VanJS logo" width="96" height="96" /> </a> <h1>Hello VanJS!</h1> <div class="card"> <Counter /> </div> <p class="read-the-docs">Click on the VanJS logo to learn more</p> </div> ); }; const root = document.getElementById("app"); van.add(root, <App />);