Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-condi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-condi

The most powerful component of the React ecosystem

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 25 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc