Created
July 15, 2016 19:22
-
-
Save StillLearnin/98f8effa2204ee0cfe0bc14ddba3182f to your computer and use it in GitHub Desktop.
React Component (no state)
This file contains 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'; | |
var styles = require('./index.css'); | |
//selective destructuring allows us to access | |
//children without using this.props.children | |
function Report ({ children }) { | |
return <div className={styles.report}> | |
{children} | |
</div>; | |
} | |
export default Report; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment