react-condi
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

react-condi

The most powerful component of the React ecosystem.

react-condi is a game-changing library for the React ecosystem. With it you can do conditional rendering in a way never seen before.

Installation

Using npm

npm i react-condi

Using Yarn

yarn add react-condi

Using pnpm

pnpm add react-condi

Why?

Tired of doing conditional rendering this way?

import React from "react"

const number = 5;
const App = () => {
    return (
        <>
            {number === 5 && "Number is five"}
        </>
    );
};

With react-condi

With react-condi you only need to do the following:

import React from "react"
import {Conditional} from 'react-condi';

const number = 5;
const App = () => {
    return (
        <Conditional value={number === 5}>
            Number is five
        </Conditional>
    );
};

More beautiful, huh?

License

MIT

Authors

Note: if you didn't get the joke. Yes, it is a joke

Package Sidebar

Install

npm i react-condi

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

9.19 kB

Total Files

18

Last publish

Collaborators

  • santigp258