文件名称:react-mixin-notify-simple
文件大小:4KB
文件格式:ZIP
更新时间:2024-06-28 13:41:10
JavaScript
React混合通知简单 用法 var React = require ( 'react' ) var NotifMixin = require ( 'react-mixin-notify-simple' ) var Store = require ( './path/to/store' ) var Notify = React . createClass ( { mixins : [ NotifMixin ] , componentDidMount : function ( ) { var me = this Store . onChange ( function ( ) { me . semaphore . write ( Store . getValue ( ) ) } )
【文件预览】:
react-mixin-notify-simple-master
----.gitignore(51B)
----package.json(552B)
----README.md(968B)
----example()
--------app.js(2KB)
--------index.html(67B)
----lib()
--------semaphore.js(1KB)
--------mixin.js(1KB)
----.npmignore(57B)