【文件属性】:
文件名称:react-extras:使用React的有用组件和实用程序
文件大小:15KB
文件格式:ZIP
更新时间:2021-04-13 11:31:15
react react-component npm-package react-utils JavaScript
React额外
使用有用组件和实用程序
安装
$ npm install react-extras
用法
import React from 'react' ;
import { If } from 'react-extras' ;
const App = props => (
< If xss=removed>
< div xss=removed>
:unicorn:
< / div >
< / If >
) ;
原料药
autoBind(自我,[选项])
自动将您的React.Component子类方法绑定到实例。 请参阅。
classNames(…输入)
有条件地将CSS类名称连接在一起。
输入
类型: string Object
接受字符串和对象的组合。 仅包含具有真实值的对象键。 其他任何事情都将被忽
【文件预览】:
react-extras-main
----test-d()
--------index.test-d.tsx(2KB)
----package.json(2KB)
----readme.md(5KB)
----.github()
--------funding.yml(113B)
--------workflows()
----test()
--------test.js(4KB)
--------snapshots()
----license(1KB)
----index.d.ts(8KB)
----.gitignore(29B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(19B)
----source()
--------index.js(791B)
--------choose.js(655B)
--------for.js(251B)
--------element-class.js(709B)
--------if.js(290B)
--------body-class.js(274B)
--------image.js(495B)
--------root-class.js(285B)