Skip to content

Instantly share code, notes, and snippets.

@mrcthms
Created May 18, 2017 20:33
Show Gist options
  • Save mrcthms/09e6d4c3cad9732374d8e0aeaf0670a1 to your computer and use it in GitHub Desktop.
Save mrcthms/09e6d4c3cad9732374d8e0aeaf0670a1 to your computer and use it in GitHub Desktop.
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