Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.67 KB

README.md

File metadata and controls

34 lines (29 loc) · 1.67 KB

News shared Demo

Extracting the most shared articles on various social platforms to see how they compare at face value.

Are we consuming 🗞️ or 🧻 ?

Features currently built

  • Facebook
  • Email

    Working to add

  • Twitter
  • Reddit
  • Mobile Responsiveness

Goals

Build a single page application (SPA) using the React and p5js libraries. A poetic approach to web-design by visualizing data in a creative coding enviroment using p5 library. As well to combine the React declarative programming approach and imperative one for direct DOM manipulation. Avoid any collisions, performance issues, and memory leaks. Use the best of the both approaches.
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.