0.1.2 • Published 3 years ago

conditional-react-components v0.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

React conditional

React conditional are components for rendering components conditionally.

Installation

$ npm install conditional-react-components

Usage

import { RxIf } from 'conditional-react-components';

const SHOW_NAME = false;

const App = () => (
  <div>
    <RxIf condition={SHOW_NAME}>
      <span>John Doe</span>
    </RxIf>
  </div>
);

export default App;