UNPKG

@chief-editor/runtime

Version:

React Runtime for Flow Editor

1 lines 222 B
import{useContext}from"react";import{RuntimeContext}from"../context/runtime";export function useRuntime(){var t=useContext(RuntimeContext);if(null==t)throw new Error("useRuntime must be use with RuntimeProvider");return t}