useApp().component 运行时注册
TodoItem 已通过调用点的有限 registry 编译为静态工厂分支。
compiler-proven registry
TodoItem 来自有限组件注册表
<Component is="TodoItem" /> 的 registry 在调用点显式声明,编译器能静态 验证并生成有限工厂分支。
完成
2/3
<Component is="TodoItem" registry={{ TodoItem }}/>compiler-proven registry
<Component is="TodoItem" /> 的 registry 在调用点显式声明,编译器能静态 验证并生成有限工厂分支。
<Component is="TodoItem" registry={{ TodoItem }}/>