3 ms·
Didn't flipboard make this already 10 years ago? https://github.com/Flipboard/react-canvas https://github.com/Flipboard/react-canvas
by kabes 3y ago
Didn't flipboard make this already 10 years ago?
https://github.com/Flipboard/react-canvas https://github.com/Flipboard/react-canvas
- percyhanna 3y ago`react-canvas` definitely has a lot of similarities, but it is very old, uses class-based components, uses React elements, and most importantly, it doesn't provide any auto-layout functionality out of the box. The main driving factor behind CanvaSX was the auto-layout functionality: if you look at the example code for rendering a button using CanvaSX, you'll noticed that there are no positional or coordinate properties being defined. In `react-canvas`, the coordinates/dimensions of each shape must be manually defined, which becomes problematic for shapes with dynamic content being rendered inline. `react-canvas` did not attempt to solve any of those problems, CanvaSX does.