gavenkoa
gavenkoa

Reputation: 48893

Integrating existing widget into React/Redux based Web app

As a dumb UI developer I can't solve system of linear equations to draw trend line. I will use some UI library or plugin (like d3.js).

So React/Redux based Web app will have foreign widgets (for SVG, tables, Canvas) on the page to reduce cost of project.

Which React/Redux API allows passing data to/from foreign widget?

What event/data movement lifecycle should I implement?

Upvotes: 0

Views: 48

Answers (1)

laaksom
laaksom

Reputation: 2210

Specific to d3, there are wrapper libraries already available, ie http://www.reactd3.org/components/

Otherwise, you'd do the same as any other component - pass props down from your store, and dispatch events to change state. If you need more control over the input / output and a higher level abstraction, I'd wrap your foreign widget functionality in a component suited to your needs. It's all JavaScript ;)

Upvotes: 1

Related Questions