I\'m creating a react app with a method to draw some arrows among divs. The function doesn\'t produce arrows right away returns the JSX but just after I manually re-rend