diff --git a/website/docs/guide/micro-module.md b/website/docs/guide/micro-module.md index 484329af..ff7455d5 100644 --- a/website/docs/guide/micro-module.md +++ b/website/docs/guide/micro-module.md @@ -282,9 +282,10 @@ const moduleInfo = { const ModuleComponent = () => { const renderNode = useRef(null); useEffect(() => { - mountModule(moduleInfo, renderNode.current, {}); + const dom = renderNode.current; + mountModule(moduleInfo, dom, {}); return () => { - unmoutModule(moduleInfo, renderNode.current); + unmoutModule(moduleInfo, dom); } }, []); return (
);