react-visible

3.0.1 • Public • Published

React Visible

A React component designed to control if children are rendered, therefore their visibility. Probably the simplest component in the world.

npm version Dependency Status devDependency Status Build Status Coverage Status

Example

import Visible from "react-visible";

…

<Visible isVisible={true}>
    You can see me, my children are rendered
</Visible>

<Visible isVisible={false}>
    You can’t see me, isn’t this nicer than doing it yourself with an if false render noscript statement
</Visible>

React support

For older versions of react please see previous versions of this library.

Readme

Keywords

Package Sidebar

Install

npm i react-visible

Weekly Downloads

2

Version

3.0.1

License

MIT

Unpacked Size

38.5 kB

Total Files

7

Last publish

Collaborators

  • timreynolds