diff --git a/src/pages/_app.js b/src/pages/_app.js new file mode 100644 index 0000000..52f988a --- /dev/null +++ b/src/pages/_app.js @@ -0,0 +1,52 @@ +import React from "react"; +import ReactDOM from "react-dom/client"; + + +// Had to install this manually into Microsoft/TypeScript +import {Route, BrowserRouter, Routes} from "react-router-dom"; +import {Helmet} from "react-helmet"; + +// CSS +import './css/main.css'; + + +import Main_Page from "./pages/Main_Page"; +import BinaryPatternEditorPage from "./pages/BinaryPatternEditorPage"; + +import Header from "./Components/Header"; + + +//import reportWebVitals from './reportWebVitals'; + +// https://github.com/orgs/community/discussions/36010#discussioncomment-4205316 + +const root = ReactDOM.createRoot(document.getElementById('root')); + +root.render(<> + + +
+ + {/* process.env.PUBLIC_URL seems to be /binary-pattern-painter-online */} + + + {/* Main page, for gh-pages "/" needed to go away */} + } /> + } /> + } /> + + {/* Rest of the paths */} + }> + + +); + +// If you want to start measuring performance in your app, pass a function +// to log results (for example: reportWebVitals(console.log)) +// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals +//reportWebVitals(); \ No newline at end of file