Optimize code. Update templates.
This commit is contained in:
17
src/components/Playground/templates/demo/App.tsx
Normal file
17
src/components/Playground/templates/demo/App.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { useState } from 'react'
|
||||
import './App.css'
|
||||
|
||||
const App = () => {
|
||||
const [count, setCount] = useState(0)
|
||||
|
||||
return (
|
||||
<>
|
||||
<h1>Hello World</h1>
|
||||
<div className="card">
|
||||
<button onClick={() => setCount((count) => count + 1)}>count is {count}</button>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default App
|
||||
Reference in New Issue
Block a user