Home forums Report Bugs Import Instructions for React

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28400

    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

    React

    Thanks

    #28506

    @jbejar86,

    Thanks for bringing it to our notice :). We have updated the tutorial.

    —-
    Manoj Mohan
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.