Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place
1import { useState } from 'react' 2import { createRoot } from 'react-dom/client' 3 4import Layout from './layouts' 5 6function App() { 7 const [count, setCount] = useState(0) 8 const increase = () => setCount((c) => c + 1) 9 10 return ( 11 <> 12 <img src="/images/maddelena-1.webp" className="max-w-40" /> 13 <h1 className="text-3xl">Bun/Elysia Fullstack</h1> 14 <h2 className="text-6xl">{count}</h2> 15 <button 16 className="text-xl text-blue-500 px-6 py-2 bg-blue-100 rounded-xl" 17 onClick={increase} 18 > 19 Increase 20 </button> 21 </> 22 ) 23} 24 25const root = createRoot(document.getElementById('elysia')!) 26root.render( 27 <Layout className="gap-6"> 28 <App /> 29 </Layout> 30)