Skip to content

Instantly share code, notes, and snippets.

@rwbrockhoff
Created March 15, 2019 19:51
Show Gist options
  • Save rwbrockhoff/0269cc9f0c134e3484fb1c0e2a28ef07 to your computer and use it in GitHub Desktop.
Save rwbrockhoff/0269cc9f0c134e3484fb1c0e2a28ef07 to your computer and use it in GitHub Desktop.
componentDidMount() {
const { data, average, labels } = this.props;
const myChartRef = this.chartRef.current.getContext('2d');
myChart = new Chart(myChartRef, ...)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment