UNPKG

@dark-engine/core

Version:

The lightweight and powerful UI rendering engine without dependencies and written in TypeScript (Browser, Node.js, Android, iOS, Windows, Linux, macOS)

11 lines (10 loc) 342 B
import { __useCursor as useCursor } from '../internal'; import { createUpdate } from '../workloop'; import { getRootId } from '../scope'; function useUpdate() { const rootId = getRootId(); const cursor = useCursor(); return createUpdate(rootId, cursor.hook); } export { createUpdate, useUpdate }; //# sourceMappingURL=use-update.js.map