ServerRenderedHydration.tsx 339 B

123456789101112131415
  1. /* eslint-disable react/no-danger */
  2. import { FC } from 'react';
  3. export const ServerRenderedHydration: FC = () => (
  4. <script
  5. id="server-side-hydration"
  6. nonce="{{.Nonce}}"
  7. dangerouslySetInnerHTML={{
  8. __html: `
  9. window.configHydration = {{.ServerConfigJSON}};
  10. window.statusHydration = {{.StatusJSON}};
  11. `,
  12. }}
  13. />
  14. );