Skynet with React
We use Create React App in the Introduction Workshop, so you can refer to that codebase as well.
In many code examples, this replacement happens in the import statement.
// BrowserRouter as Router,
HashRouter as Router,
} from "react-router-dom";
This will modify links to contain
#before the route.
Run your normal build command, then upload the
buildfolder containing an
index.htmlfile to Skynet. When using the Siasky.net homepage, be sure to select the folder tab.
Select the "Do you want to upload a web app or directory?" Tab before Uploading