r/javascript • • Jul 18 '16

d4.js — declarative data-driven documents

https://d4.js.org
33 Upvotes

10 comments sorted by

View all comments

4

u/goshakkk R Jul 18 '16

Some great thought here, Joel!

With React and JSX, I like where the things are headed. I don't think we're far from having reusable SVG components, allowing to express high-level visualizations pretty easily.

Given the tendency... I've also recently experimented with using React to draw to canvas, using an engaging image editor as an example (demo, sources, post on how it works), and I really love how React provides us a baseline to implement, reason about, and use pieces of UI, regardless of where they render — be it native mobile, terminal, canvas, and more.

2

u/joelburget Jul 18 '16

Pabla looks like a very cool project! I'll definitely check it out more after work.

I don't think we're far from having reusable SVG components

What's standing in the way?

2

u/goshakkk R Jul 18 '16

Technically — nothing. I guess it's more of a mindset shift. Like only now people are coming to appreciate reusable UI elements in HTML, but I agree that it'll spread to SVG and all sorts of other components.