$ vue create VUE-D3 && cd VUE-D3 && code . Let’s refactor the code above to use a function that sets the texts of the

-elements to the datapoint value they represent. What can be a source of bugs in this example is that d3 is appending the SVG to the body, which is completely outside of the React DOM. In App.vue, remove all the content in the