JSFiddle - React, Tailwind, and code Playground

by csornmo

HTML

<div>{kpi_inskriven} personer</div>

JavaScript

var res = $("div").text().replace("personer", "hej");
$('div').text(res);

console.log(res);