Home › forums › Chart Support › Cannot import to React › Reply To: Cannot import to React
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;