Created
May 18, 2017 20:33
-
-
Save mrcthms/09e6d4c3cad9732374d8e0aeaf0670a1 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 Badge from './components/Badge'; | |
import Table from './ui/Table'; | |
import './App.css'; | |
import propTypesToObject from './helpers/propTypesToObject'; | |
const propTypes = propTypesToObject({ | |
propTypes: Badge.propTypes | |
}); | |
const App = props => ( | |
<div className="app"> | |
<Badge | |
withHeading | |
heading="Hello Darkness"> | |
My Old Friend | |
</Badge> | |
<Table | |
propTypes={propTypes} | |
/> | |
</div> | |
); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment