JSFiddle - React, Tailwind, and code Playground
by Shang-De You
HTML
<p id="mytest">
Click Me
</p>
JavaScript
var mytest = d3.select("#mytest")
.on("click", function(){
d3.select(this).text("Thank You")
})
.on("mouseover", function(){
d3.select(this).text("Right Here")
})
.on("mouseout", function(){
d3.select(this).text("Click Me")
})