react chart js 2 npm code example Example 1: npm react chart js 2 npm i react-chartjs-2 Example 2: react chart js 2 npm install --save react-chartjs-2 chart.js