react-toggler

时间:2024-06-04 04:36:28
【文件属性】:

文件名称:react-toggler

文件大小:67KB

文件格式:ZIP

更新时间:2024-06-04 04:36:28

JavaScript

@ smooshgate / react-toggler 用于切换布尔值的render-prop组件。 import Toggler from '@smooshgate/react-toggler' const App = ( ) => ( < div> < Toggler xss=removed xss=removed xss=removed> { ( toggle , toggledState ) => ( < React> < div xss=removed> < button onClick = { toggle . foo } > toggle foo < / button > < button o


【文件预览】:
react-toggler-master
----.babelrc(207B)
----package.json(1KB)
----LICENSE(1KB)
----src()
--------index.js(461B)
--------consts.js(86B)
--------utilities.js(530B)
--------_tests()
----.gitignore(603B)
----webpack.config.js(816B)
----README.md(800B)
----yarn.lock(252KB)
----.editorconfig(188B)

网友评论