Add counter example; fix configuration

This commit is contained in:
Steve Kinney
2024-09-16 15:44:34 -06:00
parent 1747f705a6
commit b13029bffc
15 changed files with 813 additions and 8 deletions

View 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>