# @jfdi/react-utils-show

> Show is what conditionals should always have been in React.

Latest version **1.0.1** (published 2022-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jfdi/react-utils-show
pnpm add @jfdi/react-utils-show
yarn add @jfdi/react-utils-show
bun add @jfdi/react-utils-show
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-02-03 |
| First published | 2022-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jon Silver/Austin Breslin |
| Maintainers | jfdijoely, austin_breslin, jonsilver, ayeshamanu |

## Links

- npm: https://www.npmjs.com/package/@jfdi/react-utils-show
- npm.io page: https://npm.io/package/@jfdi/react-utils-show

## Recent versions

- 1.0.1 (latest) — 2022-02-03
- 1.0.0 — 2022-02-03

## README

# Show
Show is what conditionals should always have been in React. 

## Install
```terminal
npm install --save @jfdi/react-utils-show
```
## Example
```javascript
import React, { useState } from "react";
import ReactDOM from "react-dom";
import { Show } from "@jfdi/react-utils-show";

const App = () => {
    const [enabled, setEnabled] = useState(false);
    return (
        <Show when={enabled}>
            {"Passed the if check"}
        </Show>
    );
};
ReactDOM.render(<App />, document.getElementById("root"));
```

---
_Source: https://npm.io/package/@jfdi/react-utils-show · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
