https://github.com/maolion/react-mixins-decorator
用于实现在 react component class(es6风格) 使用 react mixins 特性的类装饰器
https://github.com/maolion/react-mixins-decorator
react react-decorator react-mixins react-mixins-decorator react-native typescript
Last synced: 3 months ago
JSON representation
用于实现在 react component class(es6风格) 使用 react mixins 特性的类装饰器
- Host: GitHub
- URL: https://github.com/maolion/react-mixins-decorator
- Owner: maolion
- Created: 2016-09-14T15:24:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-08T15:47:39.000Z (over 9 years ago)
- Last Synced: 2025-10-01T10:54:11.280Z (10 months ago)
- Topics: react, react-decorator, react-mixins, react-mixins-decorator, react-native, typescript
- Language: TypeScript
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/react-mixins-decorator)
[](https://travis-ci.org/maolion/react-mixins-decorator)
# React Mixins Decorator
用于实现在 react component class(es6风格) 使用 react mixins 特性的类装饰器
# 版本更新提示
- 0.1.x
组件被实现
# 安装
```
npm install react-mixins-decorator --save
```
# 使用
```
import { Component } from 'react';
import reactMixins from 'react-mixins-decorator';
@reactMixins([MixinTargetA, MixinTargetB, MixinTargetC, ....])
class TargetComponent extends Component {
....
}
```