Home › forums › Report Bugs › Import Instructions for React
Thanks for your work in sharing this project with everyone, I just noticed when I was trying to use this in React that the following code worked for me:
import CanvasJSReact from '../lib/canvasjs.react';
const CanvasJSChart = CanvasJSReact.CanvasJSChart;
instead of what was on step 3
Thanks for bringing it to our notice :). We have updated the tutorial.
You must be logged in to reply to this topic.