You must be logged in to post your query.
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 https://canvasjs.com/docs/charts/integration/react/
Thanks
@jbejar86,
Thanks for bringing it to our notice :). We have updated the tutorial.
—- Manoj Mohan Team CanvasJS
You must be logged in to reply to this topic. Login/Register