Skip to content

Instantly share code, notes, and snippets.

@robinvdvleuten
Created April 11, 2016 11:16
Show Gist options
  • Save robinvdvleuten/ee97b6165ad7a8b8691e452234dbb5cc to your computer and use it in GitHub Desktop.
Save robinvdvleuten/ee97b6165ad7a8b8691e452234dbb5cc to your computer and use it in GitHub Desktop.
import React from 'react';
import { renderToString } from 'react-dom/server';
import Application from '../client/app';
export function handler(event, context) {
const markup = renderToString(<Application name={event.name} />);
context.succeed(markup);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment