Permalink
Browse files

Introduce a layout component so we can start putting css in place

  • Loading branch information...
lucapette committed Jan 24, 2017
1 parent 3836fc2 commit 66a6caee601a7ef13c7385efa64f7425fdd28d2f
Showing with 12 additions and 7 deletions.
  1. +4 −7 src/App.js
  2. +8 −0 src/Layout.js
View
@@ -2,11 +2,8 @@
import React from 'react';
import ReactDOM from 'react-dom';
function world(): string {
return "world"
}
import Layout from './Layout';
ReactDOM.render(
<h1>Hello {world()}</h1>,
document.getElementById('root')
);
const mountNode = document.getElementById('root');
ReactDOM.render(<Layout />, mountNode);
View
@@ -0,0 +1,8 @@
//@flow
import React from 'react';
export default class Layout extends React.Component {
render() {
return <h1>Hello world!</h1>
}
}

0 comments on commit 66a6cae

Please sign in to comment.