JSFiddle - React, Tailwind, and code Playground
by Stas Shusha
HTML
<button onclick="doit()">test</button>
<br />
<br />
<div id="log" style="border: 1px solid red">
log...
<br />
</div>
JavaScript
function log(msg) {
var l = document.getElementById('log');
l.innerHTML += msg + "<br />";
}
function doit() {
log("calling window.external.notify...");
window.external.notify('{"Name":"getProductsInfo","Args":["stickers.package.400"]}');
}