react
react copied to clipboard
A wrapper component that allows you to utilise P5 sketches within React apps.
Update project types and add a guard wrapper to log an appropriate error message if no sketch is provided at runtime. ## Proposed Changes - Remove legacy types - Add...
At some point we would like to split the build CI job into smaller parts. The link to the discussion is [here](https://github.com/P5-wrapper/react/pull/174/files#r929623740)
Currently we use `rooks` to expose to us an isomorphic use effect but it seems that almost nobody uses SSR with this library and thus, we could save space in...
Currently the production build is ran through Rollup but the demo build is ran through Webpack for legacy reasons. Webpack injects a lot of Webpack runtime specific things whereas Rollup...
## Proposed Changes - Update project folder structure to cleanup `index.tsx` ## Additional Notes (optional) This is a proposal for a new structure within the `src` directory. Happy for feedback...
Fixes #114 🚧 WIP 🚧 ## Proposed Changes - Add rollup config for the demo.
Linked to this I think, not an issue with the wrapper. https://github.com/processing/p5.js/issues/1734#issuecomment-390380630 _Originally posted by @subodhpareek18 in https://github.com/P5-wrapper/react/issues/26#issuecomment-451716657_ I reviewed the above issue in P5 proper, and still have some...
## Expected Behavior Typescript gets smart. ## Actual Behavior Typescript is not smart. ## Steps to Reproduce the Problem 1. View `src/components/ReactP5WrapperGuard.tsx`. 2. View `src/components/ReactP5WrapperWithSketch.tsx`. 3. Notice the `as unknown...
## Proposed Changes - Migrate to vitest 1.x.x, update tests and coverage reporting for this. - Utilize lazy component loading strategies to create smaller bundle sizes. - Move p5 to...
In the use case described by @hanhanxue in #371, we should be able to allow abstracted methods to reach and update state in a cleaner manner than is currently possible....