Skip to content

Instantly share code, notes, and snippets.

@frankzickert
Last active May 7, 2019 08:36
Show Gist options
  • Save frankzickert/10ab8c9a793934f3ebbd3d8efb096f8a to your computer and use it in GitHub Desktop.
Save frankzickert/10ab8c9a793934f3ebbd3d8efb096f8a to your computer and use it in GitHub Desktop.
A simple SinglePageApp
/** src/index.tsx */
import * as React from 'react';
import {
Environment,
Route,
SinglePageApp
} from "infrastructure-components";
export default (
<SinglePageApp
stackName = "example"
buildPath = 'build'
region='us-east-1'>
<Environment
name="prod"
domain="www.infrastructure-components.com"
/>
<Route
path='/'
name='Infrastructure-Components'
render={ (props)=> (
<div>Hello Infrastructure-Components!</div>
)}
/>
</SinglePageApp>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment