Created
March 20, 2016 16:20
-
-
Save leofrozenyogurt/294a2d471fd346ba5662 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
// in parent container | |
renderAgency(){ | |
console.log("rendered"); | |
}, | |
render() { | |
return ( | |
<div> | |
<Agencies agencies={this.state.agencies} onClick={this.props.renderAgency} /> | |
</div> | |
) | |
} | |
// inside Agencies | |
var showAgencies = (agency) => <Agency name={agency.title} key={agency.id} onClick={this.props.renderAgency} />; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment