Skip to content

codewell/react-render-gate

Repository files navigation

@codewell/render-gate

Installation

Alpha version

npm install @codewell/render-gate

Basic Usage

import RenderGate from '@codewell/render-gate';

const SomeComponent = (props) => (
  <>
    <RenderGate condition={true}>
      This renders
    </RenderGate>

    <RenderGate condition={false}>
      This does not render
    </RenderGate>
  </>
);

Contribution

Please help by submitting issues and pull requests here on github Read more on codewell's webpage

About

React component for rendering on condition

Resources

License

Stars

Watchers

Forks

Packages

No packages published