Closed mcauser closed 3 years ago
👏 this helps a lot!
Setting basename
props in <BrowserRouter />
is the key point of this.
Thanks for this. I added a section to the readme on how to use the /docs
folder for the build and the root /
for the source code.
Changes to run this as a Project Page served from the /docs folder on the master branch: eg. http://username.github.io/spa
.git
folder.CNAME
file/docs
folder in the root.index.html
,404.html
and/build
into/docs
/docs/404.html
/docs/index.html
/src/index.js
/package.json
/webpack.config.js
Install React and dependencies. Build and start the webpack dev server.
Opens: http://localhost:8080/spa/
Instantiate the repository and push to GitHub