UNPKG

@ea-lab/reactive-json

Version:

A REACT-based lib that transforms JSON (or YAML) into interactive HTML markup.

9 lines (8 loc) 334 B
import { evaluateTemplateValue as l } from "../../engine/TemplateSystem.js"; const r = (e) => { const { globalDataContext: o, templateContext: a } = e, { to: t } = e.args; !t || typeof t != "string" || (window.location.href = l({ valueToEvaluate: t, globalDataContext: o, templateContext: a })); }; export { r as redirectNow };