UNPKG

@ndbx/runtime

Version:

The `@ndbx/runtime` package provides a runtime environment to embed NodeBox visualizations directly into React applications. NodeBox is a powerful tool for creating interactive and generative visualizations, and this runtime allows you to integrate those

15 lines (12 loc) 319 B
/** * Create a number value. * * @category Number */ export default function (node) { const numberIn = node.numberIn({ name: "numberIn", label: "number" }); const tableOut = node.tableOut({ name: "numberOut", label: "number" }); node.onRender = () => { tableOut.set([{ value: numberIn.value }]); }; }