npm install @reactchartjs/react-chart-2.js code example Example: npm react chart js 2 npm i react-chartjs-2