Answer the question
In order to leave comments, you need to log in
How to improve Server Side Rendering process, react/redux?
Good afternoon! Please tell me how to properly organize server side rendering?
now I have a minimal server on express, when it starts it pulls up js and css, which I previously made a build.
I don't really like this moment, I first need to do "npm run build", the files appear in the dist folder (for example), then start the server that already pulls these files.
How can this process be improved?
Another question is how to properly build a store?
Do I need to dispatch actions to create the initial state?
Please help whoever can!
Thank you!
Answer the question
In order to leave comments, you need to log in
You can’t answer SSR in other words, you need to stupidly take a manual or a working example (of which there are many on github) and do it.
According to redux: when you create a store, the redux calls dispatch on its inner action ("@@INIT" it seems) and collects the initial state. Install the "Redux Dev Tools" plugin in your chrome and there you can see everything that happens in redux.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question