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.
npm i react-condi
yarn add react-condi
pnpm add react-condi
import React from "react"
const number = 5;
const App = () => {
return (
<>
{number === 5 && "Number is five"}
</>
);
};
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?
Note: if you didn't get the joke. Yes, it is a joke