mm
This commit is contained in:
7
templates/vite-react-lib/playground/App.tsx
Normal file
7
templates/vite-react-lib/playground/App.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
function App() {
|
||||
return <div></div>;
|
||||
}
|
||||
|
||||
export default App;
|
||||
12
templates/vite-react-lib/playground/index.html
Normal file
12
templates/vite-react-lib/playground/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>vite-project</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
9
templates/vite-react-lib/playground/main.tsx
Normal file
9
templates/vite-react-lib/playground/main.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import App from './App.tsx'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
Reference in New Issue
Block a user