import { createRoot } from 'react-dom/client';
import styles from './my-style.module.css';
const Car = () => {
return <h1 className={styles.bigred}>Hello Car!</h1>;
}
createRoot(document.getElementById('root')).render(
<Car />
);
<!doctype html>
<html lang="en">
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
.bigred {
color: Tomato;
padding: 40px;
font-family: Sans-Serif;
text-align: center;
}