-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Found a solution to the routing issue
- Loading branch information
1 parent
bea638a
commit 3750969
Showing
7 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
let folder = __dirname; | ||
|
||
const getRootPath = () => { | ||
return folder; | ||
}; | ||
|
||
const setRootPath = (newFolder) => { | ||
folder = newFolder; | ||
}; | ||
|
||
module.exports = { getRootPath, setRootPath }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import path from "path"; | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import { setRootPath } from "../../../rootpath.js"; | ||
import App from "./components/App.jsx"; | ||
|
||
setRootPath(path.resolve(__dirname, "../../../")); | ||
|
||
window.addEventListener("DOMContentLoaded", () => { | ||
ReactDOM.render(<App />, document.getElementById("app")); | ||
}); |