| 1 | import React from "react"; |
| 2 | import ReactDOM from "react-dom/client"; |
| 3 | import { Card } from "./components/Card.tsx"; |
| 4 | import "./styles/global.css"; |
| 5 | |
| 6 | // A client-only SPA has no server environment — the greeting is a literal. |
| 7 | function App() { |
| 8 | return ( |
| 9 | <> |
| 10 | <h1 className="text-3xl font-bold">Hello from Vite!</h1> |
| 11 | <Card |
| 12 | title="Styled with Tailwind CSS" |
| 13 | body="This card is a React component styled with Tailwind utilities." |
| 14 | /> |
| 15 | </> |
| 16 | ); |
| 17 | } |
| 18 | |
| 19 | ReactDOM.createRoot(document.getElementById("root")!).render( |
| 20 | <React.StrictMode> |
| 21 | <App /> |
| 22 | </React.StrictMode>, |
| 23 | ); |