Open 02020 opened 3 years ago
// 写法1: 正确写法
export const toComponent = (name, f) => {
return {
functional: true,
name,
render: toRenderC(f),
};
};
// 写法2: 以下为错误示例, 会导致全局响应
const bug = () => {
return {
functional: true,
render(h, context) {
return toRenderC(f(context.props))(h, context);
},
};
};
grade-builder 无限极嵌套 - 核心代码 1.1
01.core-render-渲染部分
02.builder-组件构建
03.config-组件的配置
Originally posted by @02020 in https://github.com/02020/vite-kit/issues/6#issuecomment-742277268