Compare commits

...

2 Commits

Author SHA1 Message Date
ea91710510 delete lock file 2024-10-10 21:37:01 -04:00
7bf5ff926a separate App 2024-09-30 10:41:31 -04:00
3 changed files with 9 additions and 3198 deletions

3191
package-lock.json generated

File diff suppressed because it is too large Load Diff

8
src/App.tsx Normal file
View File

@ -0,0 +1,8 @@
import React from 'react'
export default function App() {
const [count, setCount] = React.useState(0)
return <button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>;
}

View File

@ -1,12 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
function App() {
const [count, setCount] = React.useState(0)
return <button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>;
}
import App from './App';
const root = document.getElementById('root');
root && ReactDOM.createRoot(root).render(<React.StrictMode><App /></React.StrictMode>);