We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
Hi, not sure if that helps you but i wrote an wrapper to include p5 into React via npm. See:
https://github.com/NeroCor/react-p5-wrapper
https://www.npmjs.com/package/react-p5-wrapper
Oh nice, Thanks for the link to the wrapper - I figured out most of it from lots of googling and stackoverflow, but I think I might re-visit how i'm adding it into React.