import {Pie} from 'react-chartjs-2'; code example Example: react chart js 2 npm install --save react-chartjs-2 chart.js