mirror of
https://github.com/leon-ai/leon.git
synced 2025-01-02 05:31:38 +03:00
feat(web app): kick off Aurora structure
This commit is contained in:
parent
7a31158497
commit
76dfe72f5f
@ -1,12 +1,10 @@
|
||||
import { useState } from 'react'
|
||||
import { Button } from './aurora/button'
|
||||
|
||||
function App() {
|
||||
const [count, setCount] = useState(0)
|
||||
|
||||
return (
|
||||
<>
|
||||
<button onClick={() => setCount(count + 1)}>Click me</button>
|
||||
<p>hello from React. Count: {count}</p>
|
||||
<p>Hello from React</p>
|
||||
<Button>OK</Button>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
9
app/src/js/aurora/button.tsx
Normal file
9
app/src/js/aurora/button.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import type React from 'react'
|
||||
|
||||
interface Props {
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
export function Button({ children }: Props) {
|
||||
return <button>{children}</button>
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
|
||||
import App from './app.tsx'
|
||||
import App from './app'
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
|
Loading…
Reference in New Issue
Block a user