Created
May 22, 2018 19:58
-
-
Save rkmax/5b843092771ce2d9566ab67d669f08d7 to your computer and use it in GitHub Desktop.
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 PropTypes from 'prop-types' | |
const Note = (props) => ( | |
<div>~{props.content.title}</div> | |
) | |
const Notes = (props) => ( | |
<div> | |
There are {props.notes.length} Notes | |
{props.notes.map(note => <Note {...note}/>)} | |
<button onClick={props.noteHandleClick}>click me!</button> | |
</div> | |
) | |
const Main = () => ( | |
<div> | |
<Notes /> | |
</div> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment