Skip to content

Instantly share code, notes, and snippets.

@trueadm
Created July 14, 2016 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trueadm/56d426b7989a8771744d87a2bfcebf82 to your computer and use it in GitHub Desktop.
Save trueadm/56d426b7989a8771744d87a2bfcebf82 to your computer and use it in GitHub Desktop.
function MyComponent() {
return (
<div>
<my-chart
onAttached={ chart => chart.start() }
onDetatched={ chart => chart.end() }
/>
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment