There have been some questions in the air asking whether and how the Metamatic framework supports React routes.
The answer is that there is absolutely no problem to use Metamatic together with React routes. These two libraries both tackle a different
problem, so they by no means stand in any conflict with each other or obstruct each other in any way.
An example of a React main class implementing both React-Routes and Metamatic-based state container would look somewhat like this:
In the example above, a React app’s main class connects to a Metamatic state ‘ACCESS_STATE’ from which it obtains an important
information, namely, whether the user is loggedIn or not. Based on that info, it then renders two exclusive routing strategies.
One which is for a user that is not logged in and another for someone who is logged in. Certainly, for those who are not logged in,
it’s only meaningful to show a “Log In” view but those who are in will be provided the full scale of navigation urls inside the App.