import { useState } from "react";
import ReactDOM from "react-dom/client";


function Car() {
  const [brand, setBrand] = useState("Ford");
  const [model, setModel] = useState("Mustang");
  const [year, setYear] = useState("1964");
  const [color, setColor] = useState("red");
  
  return (
    <>
      <h1>My {brand}</h1>
      <p>
        It is a {color} {model} from {year}.
      </p>
    </>
  )
}


const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<Car />);

              
localhost:3000