conditional-react-components
v0.1.2
Published
React conditional components
Downloads
2
Readme
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;