Using p5.js in a webpack build / process

I do React/Front end at work - however I saw no documentation for importing p5 via npm and how to properly use. I'm looking for help and or pointers. I have a working example of what I did - but not sure if it's overkill. I couldn't figure out totally how to A) be in an es6/babel/lint environment and import p5 into that process..

Maybe this can also help some people out looking to integrate with other libraries or frameworks....

github: http://github.com/pjkarlik/p5js

src/index.js calls components/Render.js and launches the sketch. The Render.js file is where im doing the sketch and it's loading...

Answers

Sign In or Register to comment.