react-d3-tree icon indicating copy to clipboard operation
react-d3-tree copied to clipboard

can't find variable document

Open issamabdelkrim opened this issue 8 years ago • 2 comments

capture d ecran 2018-01-30 a 22 56 29 when i do import Tree from 'react-d3-tree'; can someone help me plz thanks

issamabdelkrim avatar Jan 30 '18 21:01 issamabdelkrim

Hey @issamabdelkrim,

Looks like you're trying to use the library in a React Native context, which isn't possible since there's no DOM within React Native. So the error is actually correct since this is a library for web-based React.

bkrem avatar Jan 31 '18 10:01 bkrem

thanks @bkrem for your answer

issamabdelkrim avatar Jan 31 '18 10:01 issamabdelkrim