this iteration makes the code nice to work with
the original example from https://github.com/vasturiano/react-force-graph/blob/master/example/all-modes/index.html