文件名称:react-validate-mixin:react validation mixin
文件大小:4KB
文件格式:ZIP
更新时间:2024-06-08 18:12:44
JavaScript
#react-validate-mixin npm install react-validate-mixin 或者 bower install react-validate-mixin ##例子 var validate = require ( 'react-validate-mixin' ) ; var Compoent = React . createClass ( { mixins : [ validate ] , foo : function ( ) { if ( this . isValid ( ) ) // do something } , render : function ( ) { return ( < div> < / div > ) ; } } ) <Component required="true"
【文件预览】:
react-validate-mixin-master
----bower.json(461B)
----tests()
--------compiler.js(438B)
--------testdom.js(257B)
--------test.js(2KB)
--------testcompoent.js(329B)
----.gitignore(23B)
----readme.md(583B)
----mixin.js(2KB)
----package.json(658B)