Search
@yookue/react-condition
Render components conditionally for react
v0.1.19 URL:
https://unpkg.com/@yookue/react-condition@0.1.19/dist/umd/react-condition.min.js
Open
Browse Files
react-condition
if
if-else
for
switch
while
do-while
while-do
map-iterator
set-iterator
object-iterator
condition
condition-render
control-statement
choose-when
`choose-when` 是一个轻量级的 `React` 组件包,用于在 `React` 应用程序中实现条件渲染, 替代三元表达式的嵌套。通过简单的 `Choose`, `When`, 和 `Otherwise` 组件,可以方便地根据不同的条件来渲染对应的内容,主要是为了提升代码可读性和可维护性。
v1.0.6 URL:
https://unpkg.com/choose-when@1.0.6/dist/index.es.js
Open
Browse Files
choose-when
condition-render
condition-components
条件渲染
条件渲染组件
if-else