d3-flextree
d3-flextree copied to clipboard
How to use with React
Trying to figure out how to use this in my React app. I've got D3 imported without problems, but can't figure out how to import/load the generated JS files with my component.
Any help would be appreciated!
I haven't used React. I'd be interested to hear if you still have problems with the newly-released version, 2.0.0. If so, post a link to a repo demonstrating the problem, and I'll take a look.
I created a polymer based web component using d3-flextree. I am working on getting it converted over to react.
https://github.com/easymetahub/emh-d3-flextree
The only change that needs to be made to get it working proper under polymer is to edit node_modules/d3-flextree/src/flextree.js after the ’npm install'
Eliminate the import of version from package.json and hardcode the version number for flextree.version to “2.1.1”