I want to do something similar to this tutorial: https://www.amcharts.com/docs/v4/tutorials/toggling-forcedirectednode-via-api/, but I want to make it with react hooks.
I