dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.83k stars 589 forks source link

Updating the graph on the DOM #406

Open knightswatch3 opened 4 years ago

knightswatch3 commented 4 years ago

Well, so I have been trying to use the dagre library in my react application. So for the dynamic rendering of the graph when adding new nodes, I have been running clueless about how to achieve this. I think it's the naive way I have achieved it by updating the state of my component that's registered to have the graph data.

I had to take this step because I couldn't find enough documentation for the API of the library. Any thought and advices would be appreciated !

Thanks.