541 B
541 B
Refactoring Modules for use within Master app
- Add
basename={window.location.pathname}to BrowserRouter props in App.js. - Update Router paths. Remove home, callback routes.
- Remove Material-ui theme provider.
- Remove Apollo React.
- Update auth handling. Pass as props or pull from local storage.
- Remove header and footer.
Developing Module with Master App
- Navigate to your module client.
- Run
npm link ../../MasterApp/client. Update relative url of your module client in relation to MasterApp client if needed.