planner / templates/web-app/src/App.tsx.tmpl

raw file 303 bytes
import { useState } from "react";

export default function App() {
  const [count, setCount] = useState(0);
  return (
    <main style={{ padding: 24 }}>
      <h1>{{name}}</h1>
      <p>{{description}}</p>
      <button onClick={() => setCount((c) => c + 1)}>count: {count}</button>
    </main>
  );
}