js elements:实验性小型Web组件库 源码

motherly6482 9 0 ZIP 2021-04-04 05:04:43

js元素 一个研发项目,用于评估组件自定义元素的替代方法。 免责声明: 项目尚处于早期状态......顺便说一句:目前,它不打算在生产中使用。 例子 例子1 import { define , h , render } from 'js-elements' class SayHelloProps { salutation = 'Hello' name = 'World' } const SayHello = define ( 'say-hello' , SayHelloProps , ( props ) => { return ( ) => ( < div> { props . salutation } , { props . name } ! < / div > ) } ) render ( < SayHello salutation = "Hi

用户评论
请输入评论内容
评分:
暂无评论