Using state to pass DOM nodes SVG data on componentDidMount