Skip to content

Commit

Permalink
add app
Browse files Browse the repository at this point in the history
  • Loading branch information
kolibril13 committed Jan 22, 2024
1 parent bdc4385 commit 8476e80
Showing 1 changed file with 16 additions and 32 deletions.
48 changes: 16 additions & 32 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,19 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'

function App() {
const [count, setCount] = useState(0)
import { Tldraw } from "@tldraw/tldraw";
import "@tldraw/tldraw/tldraw.css";

export default function App() {
return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
</p>
<div
style={{
display: "flex",
position: "relative",
width: "100vw",
height: "100vh",
}}
>
<div style={{ width: 500, height: 500 }}>
<Tldraw></Tldraw>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
)
}

export default App
</div>
);
}

0 comments on commit 8476e80

Please sign in to comment.