Add counter example; fix configuration
This commit is contained in:
20
examples/accident-counter/index.html
Normal file
20
examples/accident-counter/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Accident Counter</title>
|
||||
</head>
|
||||
<script type="module" lang="jsx">
|
||||
import { createElement } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { Counter } from './src/counter.tsx';
|
||||
import './styles.css';
|
||||
|
||||
createRoot(document.getElementById('root')).render(createElement(Counter));
|
||||
</script>
|
||||
<body>
|
||||
<div
|
||||
class="container flex items-center justify-center h-screen"
|
||||
id="root"
|
||||
></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user