Extracting the most shared articles on various social platforms to see how they compare at face value.
- Mobile Responsiveness
Multiple p5 sketches on a same screen;
Mount sketches in different points of the DOM tree;
Bidirectional communication between the main React app and sketches;
Using the latest React features.
This project demonstrates how to combine React (including the latest features such as hooks and context) and p5.js:
Multiple p5 sketches on a same screen;
Multiple instances of one sketch mounted in a same component;
Mount sketches in different points of the DOM tree;
p5.js libraries support
Bidirectional communication between the main React app and sketches;
Using the latest React features:
Styled-Components
The p5.js sketch is wrapped in a React component. The data that comes into the sketch is passed on to this component as props. Callbacks are used to return information back from the sketch to the application.