Skip to content Skip to sidebar Skip to footer

How To Include Createjs Library Into Reactjs Project

Hi I am creating an app on reactjs, which is canvas based, It require Createjs library, I am new for Reactjs I am not getting perfect idea how do this so I tried 2 ways one is usin

Solution 1:

I add relative path to index.html and got Createjs library code into componentWillMount() using window.createjs, dn't know but I feel it can work to add all ramdom libraries in react.

Solution 2:

So I made it work by installing this specific dependency

"@createjs/easeljs": "^2.0.0-beta.4",

And In my Component file I am importing them like this

import { Stage, Shape, TraceShape } from'@createjs/easeljs';

Post a Comment for "How To Include Createjs Library Into Reactjs Project"