xeact:将你的 React 组件连接到 Web 组件

时间:2021-07-24 12:04:46
【文件属性】:
文件名称:xeact:将你的 React 组件连接到 Web 组件
文件大小:151KB
文件格式:ZIP
更新时间:2021-07-24 12:04:46
react webcomponents custom-elements JavaScript React xeact 是一个 JavaScript 库,用于连接和 安装 npm install xeact --save 快速开始 注册一个组件 import xeact , { observed , exposed , dispatchEvent , Component } from "xeact" ; // register a Component with tag name 'box' @ xeact ( 'box' ) export default class Box extends Component { static propTypes = { // observe 'header' attribute change from dom @ observed header : PropTypes . string ,
【文件预览】:
xeact-master
----.travis.yml(57B)
----.babelrc(349B)
----rollup.config.js(1KB)
----docs()
--------image()
----package.json(2KB)
----test()
--------sample.js(275B)
--------enzymeAdapter.js(119B)
--------dom.test.js(599B)
--------register.test.js(424B)
--------attributes.test.js(3KB)
----README-zh_CN.md(4KB)
----LICENSE(1KB)
----src()
--------events.js(289B)
--------index.js(319B)
--------identifiers.js(989B)
--------attributes.js(4KB)
--------methods.js(4KB)
--------reactImpl()
--------domApi.js(1KB)
--------configure.js(316B)
--------styles.js(1KB)
--------utils()
----.gitignore(985B)
----README.md(4KB)
----yarn.lock(207KB)
----.editorconfig(131B)

网友评论