There is a backend on Yii 2, which generates the html itself, with a regular old website site.ru
He has a rest api api.site.ru
Want to translate for practice site.ru entirely in react, but sometimes don't understand how to build work, namely:
1. I need from any page site.ru to give the same static with one bundle, and mnogogrannost to use react-router, right?
2. How to handle 404 ?
- I understand that in react-router has the ability to catch all "non-designated ranting," but what if my fetch request returned 404 ?
Do I understand correctly that this is solved - generating exceptions, and reactor to catch him?
Thanks for the help