export default function Car() { return <h2>Hi, I am a Car!</h2> }
import React from 'react' import ReactDOM from 'react-dom' import Car from "/src/Car.jsx" ReactDOM.createRoot(document.getElementById("root")).render(<Car/>)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/svg+xml" href="src/favicon.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Vite App</title> </head> <body> <div id="root"></div> <script type="module" src="/src/script.jsx"></script> <script type="module" src="/src/Car.jsx"></script> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)