Note, I'm musing react with tsx (typescript)
my index.tsx file
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
const getelem = document.getElementById("root");
getelem && ReactDOM.render(<App />, getelem);
reportWebVitals();
my templaes/react.html file has the same code that i copied from build/index
and I did all the other steps.
see my repo
Note, I'm musing react with tsx (typescript)
my index.tsx file
my templaes/react.html file has the same code that i copied from build/index
and I did all the other steps.
see my repo