UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

18 lines 531 B
import { jsx as _jsx } from "preact/jsx-runtime"; import { useRef, useEffect } from "preact/hooks"; import settings from "../../api/settings"; const World = () => { const elRef = useRef(null); useEffect(() => { const el = elRef.current; if (!el) return; settings.autoMount = el; return () => { settings.autoMount = false; }; }, []); return _jsx("div", { ref: elRef, style: { flexGrow: 1 } }); }; export default World; //# sourceMappingURL=index.js.map