文件名称:nuclear-react-mixin:将组件状态绑定到NuclearJSReact器的React mixin
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-21 16:28:08
JavaScript
核React混合物 将组件状态绑定到React器的React mixin。 用法 /* @jsx React.DOM */ var React = require ( 'react' ) // instance of a Nuclear Reactor var reactor = require ( './reactor' ) var ReactorMixin = require ( 'nuclear-react-mixin' ) var PlayerCard = React . createClass ( { mixins : [ ReactorMixin ( reactor ) ] , getDataBindings : function ( ) { return { playerInfo : [ 'players' , this . props . id
【文件预览】:
nuclear-react-mixin-master
----package.json(486B)
----test()
--------mixin-tests.js(2KB)
----src()
--------mixin.js(2KB)
----.gitignore(13B)
----README.md(2KB)