JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://d3js.org/d3.v4.js"></script>
<svg id="content"> </svg>
JavaScript
var dataset = ["aaa", "bbb", "ccc"] ;
d3.select("#content")
.selectAll("text")
.data( dataset )
.enter()
.append("text")
.attr("x", function(d,i){ return i* 60 })
.attr("y", 20)
.text(function(d,i){ return d })
;