sghall / react-move

React Move | Beautiful, data-driven animations for React
https://react-move-docs.netlify.app
MIT License
6.58k stars 168 forks source link

Tree demo doesn't work with current reactjs #103

Closed geohuz closed 1 year ago

geohuz commented 1 year ago

I've create a new project and trying to follow the collapsable tree demo, it throws the error as follow:

Uncaught TypeError: data2.links is not a function

The @vx package actually has been updated to @visx, so I'm wondering if the Tree from @visx doesn't work as before, specifically the current demo is using render props.

geohuz commented 1 year ago

ok, remove the StrictMode from the index fix the issue.