摘要: StencilJs 学习之 JSX Stencil 组件使用 `JSX` 渲染,这是一种流行的声明式模板语法。每个组件都有一个渲染函数,它返回在运行时渲染到 DOM 的组件树。 ## 基础用法 `render` 函数用于输出将绘制到屏幕上的组件树。 ```ts class MyComponent { render() { return 阅读全文
posted @ 2023-06-21 08:26 _zhiqiu 阅读(168) 评论(0) 推荐(0) 编辑