While rendering react application at server side window, document, jQuery and localStorage are not working.
Can anyone help me with this?
When you use server side rendering in your application, the first renderer process is done by the server, not by the client (the browser). On the client, we can access to objects like window, document, localStorage, etc. because these all are the property of the browser. However, on the server these objects are not available yet.
I did this scheme a long time ago. It explains the process of renderer in a SSR App. In your case, objects like window will be available only from point 6 (the first green step). Every red step is a server process (here, the properties of the browser are not accesible)
I hope this helps you.