JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdn.jsdelivr.net/npm/hyperformula/dist/hyperformula.full.min.js"></script>
JavaScript
const hf = HyperFormula.buildEmpty({
licenseKey: "gpl-v3",
precisionRounding: 14,
});
const output = hf.batch(() => {
hf.addNamedExpression("G_7", "=1");
hf.addNamedExpression("HF2_2", "=2");
hf.addNamedExpression("_a1", "=HF2_2/G_7");
});
console.log(output)