JSPM

Found 33 results for if-else

brn

simple functional branching logic

  • v1.1.3
  • 52.34
  • Published

rc-if-else

conditional rendering for react components

  • v1.2.1
  • 39.14
  • Published

react-conditional-manager

A react component that handles conditional logic in a more elegant manner.

  • v2.0.0
  • 34.98
  • Published

conditional-render-simplify

[![npm](https://img.shields.io/npm/v/conditional-render-simplify?logo=npm)](https://www.npmjs.com/package/conditional-render-simplify)

  • v0.1.14
  • 32.25
  • Published

marathiscript

MarathiScript - A fun programming language in Marathi. Created by Atikin Verse.

    • v1.0.1
    • 31.36
    • Published

    if-else-react

    small helper component for conditional rendering

    • v0.5.6
    • 30.16
    • Published

    match-rules

    A tiny (1kB GZipped) zero dependency JavaScript utility that lets you write your conditional business logic in a declarative way (React like).

    • v1.3.8
    • 26.98
    • Published

    @stdlib/utils-if-else

    If a condition is truthy, return `x`; otherwise, return `y`.

    • v0.2.2
    • 19.50
    • Published

    @stdlib/utils-async-if-else

    If a predicate function returns a truthy value, return `x`; otherwise, return `y`.

    • v0.2.2
    • 16.53
    • Published

    react-branch

    React helper conditional components for convenient and declarative development

    • v1.0.7
    • 16.36
    • Published

    @stdlib/utils-async-if-then

    If a predicate function returns a truthy value, invoke `x`; otherwise, invoke `y`.

    • v0.2.2
    • 15.47
    • Published

    choose-when

    `choose-when` 是一个轻量级的 `React` 组件包,用于在 `React` 应用程序中实现条件渲染, 替代三元表达式的嵌套。通过简单的 `Choose`, `When`, 和 `Otherwise` 组件,可以方便地根据不同的条件来渲染对应的内容,主要是为了提升代码可读性和可维护性。

    • v1.0.6
    • 14.02
    • Published

    @axew/rc-if

    A react component for write if-else in render

    • v1.1.0
    • 13.83
    • Published

    control-statements

    Neater control statements (if/for) for react, as a component

    • v1.0.3
    • 12.95
    • Published

    obj-denied

    Check if the required properties are set, the easy way!

    • v1.3.1
    • 12.86
    • Published

    components-switch

    A lightweight React utility component library featuring Switch and Match for conditional rendering, inspired by SolidJS. Simplifies readable and declarative conditional logic in JSX.

    • v1.0.0
    • 12.31
    • Published

    oz-branch-free

    Library with alternatives to hard coded switch-case and if-else blocks

    • v1.3.0
    • 11.68
    • Published

    react-conditioner

    Conditional component for react, if else as a component

    • v1.1.0
    • 10.95
    • Published

    @stdlib/utils-if-then

    If a condition is truthy, invoke `x`; otherwise, invoke `y`.

    • v0.2.2
    • 10.78
    • Published

    react-render-actions

    Set of JavaScript actions to use during component rendering

    • v1.0.0-alpha.0
    • 9.64
    • Published

    predict-sugar

    Syntactic sugar for if, else statements by a function. Aim for an implementation both clean and elegant.

    • v0.1.5
    • 8.72
    • Published

    node-cond

    lisp "cond" special form realization for js

    • v0.0.1
    • 8.52
    • Published

    unl

    simple functional branching logic

    • v1.0.1
    • 7.53
    • Published

    react-decide

    React Component to make the Conditional Render look Elegant

    • v1.0.1
    • 7.47
    • Published

    tifel

    Convert ternary expressions to if-else statements

      • v1.0.4
      • 7.47
      • Published

      react-if-then-else-switch

      A React library for declarative conditional rendering using If/Else and Switch/Case components for cleaner JSX.

        • v1.0.4
        • 6.37
        • Published

        improved-switch

        An improved switch syntax for javascript, which allows you to cover more base - such as using comparative statements inside switch cases.

        • v1.0.3
        • 2.78
        • Published

        react-ifelsefy

        A conditional rendering package for React and React Native

        • v2.0.0
        • 0.00
        • Published