Search results
27 packages found
Neater control statements (if/for) for react, as a component
Neater control statements (if/for) for react, as a component
Neater control statements (if/for) for react, as a component
Conditional component for react, if else as a component
React Component to make the Conditional Render look Elegant
Render components conditionally for React
- react-condition
- if
- if-else
- for
- switch
- while
- do-while
- while-do
- map-iterator
- set-iterator
- condition
- condition-render
- control-statement
If a predicate function returns a truthy value, return `x`; otherwise, return `y`.
If a predicate function returns a truthy value, invoke `x`; otherwise, invoke `y`.
If as an expression for JavaScript
Control flow as an expressions for JavaScript
- control flow
- if expression
- if-else
- if-elseif-else
- switch expression
- switch-case
- switch-case-default
- try expression
- try-catch
If a condition is truthy, return `x`; otherwise, return `y`.
If a condition is truthy, invoke `x`; otherwise, invoke `y`.
Library with alternatives to hard coded switch-case and if-else blocks
[![npm](https://img.shields.io/npm/v/conditional-render-simplify?logo=npm)](https://www.npmjs.com/package/conditional-render-simplify)
Check if the required properties are set, the easy way!
conditional rendering for react components
A tiny (1kB GZipped) zero dependency JavaScript utility that lets you write your conditional business logic in a declarative way (React like).
- javascript
- declarative
- imperative
- react
- react-like
- react-rendering
- tiny
- zero dependency
- if-else
- react-conditional-rendering
- conditional-rendering
- feature-flag
- rules
- matchrules
- View more
simple functional branching logic
Syntactic sugar for if, else statements by a function. Aim for an implementation both clean and elegant.
A react component for write if-else in render