3 ms·
Make your 404 handler return your baseline react without preloaded state. If you use node server-side it becomes easier to do universal rendering and state inj
by tracker1 10y ago
Make your 404 handler return your baseline react without preloaded state. If you use node server-side it becomes easier to do universal rendering and state injection.
- jaypaulynice 10y agoThanks! I don't want to hit the web app at all...I want to load all my static files once and then it's all client side...getting data from the rest service when it needs it...
- tracker1 10y agoYou can do that... if you want to handle all the routes, just make your 404 handler on the server return your base html then.