using-react-hooks-with-d3
using-react-hooks-with-d3 copied to clipboard
TypeError: svg.selectAll(...).data(...).join(...).on(...).attr(...).transition is not a function and TypeError: Cannot read property 'name' of undefined
Getting this error while running branch locally (12-geo branch) TypeError: svg.selectAll(...).data(...).join(...).on(...).attr(...).transition is not a function
once I comment transition() method, map renders fine. But when I click any country getting below error
TypeError: Cannot read property 'name' of undefined
Hi,
I added a parameter to the on-click event handler and updated npm packages.
This fixes the issue.