Implemented react-router-dom v4

This commit is contained in:
Keven van Zuijlen
2017-03-28 14:21:25 +02:00
committed by Steve Sanderson
parent 7a11cf97fd
commit d2c56d19d0
4 changed files with 17 additions and 17 deletions

View File

@@ -2,7 +2,7 @@ import * as React from 'react';
import { NavMenu } from './NavMenu';
export interface LayoutProps {
body: React.ReactElement<any>;
children?: React.ReactNode;
}
export class Layout extends React.Component<LayoutProps, {}> {
@@ -13,7 +13,7 @@ export class Layout extends React.Component<LayoutProps, {}> {
<NavMenu />
</div>
<div className='col-sm-9'>
{ this.props.body }
{ this.props.children }
</div>
</div>
</div>;