v1
- by victor-homyakov 4/1/202100
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
function useState(x) {
  return [x, y => x = y];
}

function renderNative() {
  const [x, setX] = useState(0);
  return "<div>" + x + "</div>";
}

function renderTranspiled() {
  var _useState = useState(0),
    x = _useState[0],
    setX = _useState[1];
  return "<div>" + x + "</div>";
}

let strLength = 0;
delete caserun single casemove downdrag and drop case


ready



strLength += renderNative().length;
delete caserun single casemove updrag and drop case


ready



strLength += renderTranspiled().length;
Test Case - click to add another test case
disable teardown JavaScript
teardown JavaScript
console.log(strLength);
Output (DOM) - click to monitor output (DOM) while test is running
RUN