make server-side rendering with react safe