Skip to content

Instantly share code, notes, and snippets.

@leofrozenyogurt
Created March 20, 2016 16:20
Show Gist options
  • Save leofrozenyogurt/294a2d471fd346ba5662 to your computer and use it in GitHub Desktop.
Save leofrozenyogurt/294a2d471fd346ba5662 to your computer and use it in GitHub Desktop.
// 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