I've implemented the router and everything works (navigation etc.) but how can I make sure that when I want to go to http://myapp.dev/members that the url is handled by react (router)? When I type that URL in my browser now, nothing happens, because the /members doesnt exist (backend)
You need to redirect your backend to wherever your react application is. react-router
themselves have it in their documentation. If you're on nginx, use a try_files
rule to try, see if it exists, and if not, fire back to wherever your react app is.
The same goes for Apache using rewrite rules.
Both are actually very well documented within the doc.