UNPKG

r-ninja

Version:

r-ninja watches for changes in JSX expressions and updates UI with very less glue code.

17 lines (16 loc) 532 B
import { check, PropsWatcher } from "./ninja"; import { internals } from "./internals"; import { When } from "./components/when"; export { PropsWatcher, NinjaContext, useWatcher, check } from "./ninja"; export { Watcher } from "./watcher"; export { ViewModel } from "./viewmodel"; export { useViewModel, ViewmodelProvider } from "./hooks"; export default { PropsWatcher, When, check, internals, }; if (typeof window !== "undefined") { window['RNINJA'] = Object.assign(Object.assign({}, internals), { check }); }