Mnohostranne on yii2 + reactJs?

There is a backend on Yii 2, which generates the html itself, with a regular old website
He has a rest api

Want to translate for practice entirely in react, but sometimes don't understand how to build work, namely:

1. I need from any page 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
April 19th 20 at 12:27
0 answer

Find more questions by tags React