@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
JavaScript
/**
* Create a string value.
*
* @category String
*/
export default function (node) {
const stringIn = node.stringIn({ name: "stringIn", label: "string" });
const tableOut = node.tableOut({ name: "stringOut", label: "string" });
node.onRender = () => {
tableOut.set([{ value: stringIn.value }]);
};
}