Compare commits
2 Commits
feature/re
...
master
Author | SHA1 | Date | |
---|---|---|---|
ea91710510 | |||
7bf5ff926a |
3191
package-lock.json
generated
3191
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
8
src/App.tsx
Normal file
8
src/App.tsx
Normal 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>;
|
||||||
|
}
|
@ -1,12 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import ReactDOM from 'react-dom/client'
|
import ReactDOM from 'react-dom/client'
|
||||||
|
import App from './App';
|
||||||
function App() {
|
|
||||||
const [count, setCount] = React.useState(0)
|
|
||||||
return <button onClick={() => setCount((count) => count + 1)}>
|
|
||||||
count is {count}
|
|
||||||
</button>;
|
|
||||||
}
|
|
||||||
|
|
||||||
const root = document.getElementById('root');
|
const root = document.getElementById('root');
|
||||||
root && ReactDOM.createRoot(root).render(<React.StrictMode><App /></React.StrictMode>);
|
root && ReactDOM.createRoot(root).render(<React.StrictMode><App /></React.StrictMode>);
|
Loading…
Reference in New Issue
Block a user