JSFiddle - React, Tailwind, and code Playground
HTML
<label for="out1">Output</label>
(<output id="out1" value="foo"></output>)
You should see "(1)".
JavaScript
const out1 = document.getElementById("out1");
out1.value = out1.labels.length;
<label for="out1">Output</label>
(<output id="out1" value="foo"></output>)
You should see "(1)".
const out1 = document.getElementById("out1");
out1.value = out1.labels.length;