Installations
npm install react-mlux-binder
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
6.2.0
NPM Version
3.8.9
Score
68.1
Supply Chain
59.6
Quality
75
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
pallyoung
Download Statistics
Total Downloads
1,903
Last Day
1
Last Week
8
Last Month
17
Last Year
99
GitHub Statistics
16 Commits
2 Watching
1 Branches
1 Contributors
Bundle Size
2.75 kB
Minified
968.00 B
Minified + Gzipped
Package Meta Information
Latest Version
0.2.3
Package Id
react-mlux-binder@0.2.3
Size
3.07 kB
NPM Version
3.8.9
Node Version
6.2.0
Total Downloads
Cumulative downloads
Total Downloads
1,903
Last day
0%
1
Compared to previous day
Last week
0%
8
Compared to previous week
Last month
112.5%
17
Compared to previous month
Last year
-18.2%
99
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
react-mlux-binder
基于mlux,用于实现在react或者react-native框架下组件自动监听store变化并更新。
Features
- 在监听的store数据发生变化时动态更新视图。
- 提供多种方法方便创建Binder组件。
Demo
请移步Lottery项目;
Usage
在项目根目录下执行
npm install react-mlux-binder --save
在项目文件中引入
1import Binder from 'react-mlux-binder';
API Reference
1//当testStore的值发生改变的时,Text组件中的内容将会自动更新。 2<Binder bind = {[testStore]} render = {()=><Text>{testStore.value}</Text>}}/>
Binder.createClass
createClass方法将一个普通的Component变成一个Binder Component。
1Binder.createClass(ReactComponent:Class<React.Component<*,*,*>>):Class<*>
1let BinderA = Binder.createClass(A); 2 3<BinderA bind = {[store]} propsUpdater = {()=>{ 4 name:store.name 5}} />
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More