Search results
2 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Render components conditionally for react
- condition
- condition-render
- control-statement
- react-condition
- if
- if-else
- for
- switch
- while
- do-while
- while-do
- map-iterator
- set-iterator
- object-iterator
published version 0.1.22, 13 days ago1 dependents licensed under $MIT
137
`choose-when` 是一个轻量级的 `React` 组件包,用于在 `React` 应用程序中实现条件渲染, 替代三元表达式的嵌套。通过简单的 `Choose`, `When`, 和 `Otherwise` 组件,可以方便地根据不同的条件来渲染对应的内容,主要是为了提升代码可读性和可维护性。
published version 1.0.6, 5 months ago0 dependents licensed under $MIT
12