hook up svg positional updates to react