Created
April 11, 2016 11:16
-
-
Save robinvdvleuten/ee97b6165ad7a8b8691e452234dbb5cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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