React Landing Page


Server Side Rendering

This library uses styled-components for styling, which works with server-side rendering. See the styled-components documentation for more on how to use server-side rendering.

import { renderToString } from 'react-dom/server'
import { ServerStyleSheet } from 'styled-components'
import LandingPage from './LandingPage'

const sheet = new ServerStyleSheet()
const html = renderToString(sheet.collectStyles(<LandingPage />))
const css = sheet.getStyleTags()