January 2020
Intermediate to advanced
428 pages
10h 34m
English
React Router (https://reacttraining.com/react-router/web/guides/philosophy) is used for client-side routing. The default setup with JHipster is to use browser history-based routing (HTML5 push state). It provides simple component-based routing, along with a flexible API for advanced routing setups. Routes can be defined anywhere in the application alongside the normal React rendering code. JHipster provides some custom wrappers such as PrivateRoute to enable authorization-based routing and ErrorBoundaryRoute with custom React error boundaries. JHipster also does lazy loading for entities and admin and account screens.
Let's take a look at src/main/webapp/app/routes.tsx:
...// Lazy loading for account screensconst ...
Read now
Unlock full access