I have window
dependency in some of modules I use, so I cannot render part of my app on a server. However the content send from a server should be the same as a content rendered on a client first time, otherwise there will be a: "React attempted to use reuse markup in a container but the checksum was invalid" warning.
Seems like I need to do some workaround, render the content from a server and then, after component is mounted, render a client only part. Similar issue described here.
I feel this is the best solution, however eslint from AirBnB throws an error that changing state in componentDiMount
is not good.
Do you have better ideas?