Home forums Using CanvasJS Cannot import to React Reply To: Cannot import to React

#27360

Hi Guys,

Yes, meg_lai is correct. Your demos are not working.

The code below is now the correct way to import.

import CanvasJSReact from '../../assets/canvasjs.react.js';
var CanvasJSChart = CanvasJSReact.CanvasJSChart;