# react-children-filter

> react component that return filtered children

Latest version **1.0.4** (published 2017-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-children-filter
pnpm add react-children-filter
yarn add react-children-filter
bun add react-children-filter
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-11-30 |
| First published | 2017-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | forsyphilis |
| Maintainers | forsyphilis |
| Keywords | react, component, filter |

## Links

- npm: https://www.npmjs.com/package/react-children-filter
- Repository: https://github.com/forsyphilis/react-children-filter
- Homepage: https://github.com/forsyphilis/react-children-filter#readme
- Issues: https://github.com/forsyphilis/react-children-filter/issues
- npm.io page: https://npm.io/package/react-children-filter

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-11-30
- 1.0.3 — 2017-11-30
- 1.0.2 — 2017-10-30
- 1.0.1 — 2017-10-29
- 1.0.0 — 2017-10-29

## README

[![npm version](https://badge.fury.io/js/react-children-filter.svg)](https://badge.fury.io/js/react-children-filter)

# react-children-filter
react component that return filtered children


#### install
```
npm i --save react-children-filter 
```
#### example
```jsx
import React from 'react'
import { ChildrenFilter } from "react-children-filter";
...


//filter_type = [include_all, include_any, same, except_all, except_any]

<ChildrenFilter filter={['a','b'} type="same" filter_key="auth" >
  <MenuA auth={['a', 'c', 'd']}/>
  <MenuB auth={['b', 'd']}/>
  <MenuC auth={['b']}/>
  <MenuD auth={['a','c']}/>
  <MenuE auth={['c']}/>
  <MenuF auth={['b','a','c','d']}/>
  <MenuG auth={['a','b']}/>
</ChildrenFilter>
...
// will render only MenuG 

```

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