News for hackers. Stuff that matters.
Re:Why I’m throwing out React and going back to Angular 1.x by tracker1 on Tuesday March 14, 2017 @07:32PM (#13872523)
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.
Re:Why I’m throwing out React and going back to Angular 1.x by jaypaulynice on Wednesday March 15, 2017 @12:36AM (#13873848)
Thanks! 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...
Re:Why I’m throwing out React and going back to Angular 1.x by tracker1 on Friday March 17, 2017 @01:04PM (#13895697)
You can do that... if you want to handle all the routes, just make your 404 handler on the server return your base html then.