【文件属性】:
文件名称:reactorator:混合你的 mixins 并装饰!
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-02 20:16:52
JavaScript
React堆
混合你的 mixins 并装饰!
import reactorator from 'reactorator' ;
import { Component } from 'react' ;
import { state , navigation } from 'react-router' ;
@ reactorator ( state , navigation )
class Nav extends Component {
constructor ( ) {
super ( ) ;
}
render ( ) {
const path = this . getPath ( ) ;
return < h1> Hello { path } < / h1 > ;
}
}
接受添加功能的 mixin。 但是,如果您尝试添加具有 React 生
【文件预览】:
reactorator-master
----index.js(1KB)
----package.json(856B)
----test()
--------test.js(927B)
----src()
--------index.js(1KB)
----LICENSE.md(1KB)
----.gitignore(22B)
----CHANGELOG.md(155B)
----README.md(922B)