class-name-mixin:通过Mixin轻松从React组件中的props引入ClassNames

时间:2021-05-26 18:27:10
【文件属性】:
文件名称:class-name-mixin:通过Mixin轻松从React组件中的props引入ClassNames
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-26 18:27:10
JavaScript 类别名称Mixin Mixin可以轻松地从道具中引入ClassNames。 例子 var ExampleComponent = React . createClass ( { mixins : [ ClassNameMixin ] , render : function ( ) { if ( this . state . renderAsCollapsible ) { return this . renderAsCollapsible ( ) ; } else { return this . renderAsDropdown ( ) ; } } , renderAsDropdown : function ( ) { return ( < div classN
【文件预览】:
class-name-mixin-master
----bower.json(421B)
----webpack.config.js(653B)
----src()
--------utils()
--------mixins()
--------index.js(68B)
----.travis.yml(38B)
----example()
--------index.html(2KB)
----gulpfile.js(59B)
----README.md(3KB)
----dist()
--------ClassNameMixin.js(1KB)
----tests()
--------utils()
--------mixins()
----.gitignore(79B)
----package.json(871B)
----gulp()
--------tasks()
--------util()

网友评论