diff --git a/Notes b/Notes index 011484e..85acfa6 100644 --- a/Notes +++ b/Notes @@ -3,4 +3,10 @@ console.log(process.env.REACT_APP_TEST_KEY); PUBLIC_URL=http://127.0.0.1/play-nine -Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted \ No newline at end of file +Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted + + + +https://medium.com/@svinkle/how-to-deploy-a-react-app-to-a-subdirectory-f694d46427c1 +https://stackoverflow.com/questions/49429906/how-should-i-configure-create-react-app-to-serve-app-from-subdirectory +https://skryvets.com/blog/2018/09/20/an-elegant-solution-of-deploying-react-app-into-a-subdirectory/ \ No newline at end of file diff --git a/src/components/App.js b/src/components/App.js index 4c052b5..17a7b7e 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,12 +1,17 @@ import React from "react"; import Game from "./game"; +import PageNotFound from "./PageNotFound"; +import { Route, Switch } from "react-router-dom"; class App extends React.Component { state = {}; render() { - return ( + return (
- + + + +
); } diff --git a/src/components/PageNotFound.jsx b/src/components/PageNotFound.jsx new file mode 100644 index 0000000..e46f53c --- /dev/null +++ b/src/components/PageNotFound.jsx @@ -0,0 +1,5 @@ +import React from "react"; + +const PageNotFound = () =>

Oops! Page not found

; + +export default PageNotFound; \ No newline at end of file