# react-features

> [![bitHound Overall Score](https://www.bithound.io/github/uatec/react-features/badges/score.svg)](https://www.bithound.io/github/uatec/react-features) [![bitHound Dependencies](https://www.bithound.io/github/uatec/react-features/badges/dependencies.svg)](

Latest version **1.0.9** (published 2016-05-20) · 0 weekly downloads

## Install

```sh
npm install react-features
pnpm add react-features
yarn add react-features
bun add react-features
```

## 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.9 |
| Published | 2016-05-20 |
| First published | 2016-05-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | uatec |

## Links

- npm: https://www.npmjs.com/package/react-features
- npm.io page: https://npm.io/package/react-features

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^15.0.2

## Recent versions

- 1.0.9 (latest) — 2016-05-20
- 1.0.6 — 2016-05-20
- 1.0.5 — 2016-05-20
- 1.0.0 — 2016-05-19

## README

# react-features

[![bitHound Overall Score](https://www.bithound.io/github/uatec/react-features/badges/score.svg)](https://www.bithound.io/github/uatec/react-features)
[![bitHound Dependencies](https://www.bithound.io/github/uatec/react-features/badges/dependencies.svg)](https://www.bithound.io/github/uatec/react-features/master/dependencies/npm)
[![bitHound Dev Dependencies](https://www.bithound.io/github/uatec/react-features/badges/devDependencies.svg)](https://www.bithound.io/github/uatec/react-features/master/dependencies/npm)
[![bitHound Code](https://www.bithound.io/github/uatec/react-features/badges/code.svg)](https://www.bithound.io/github/uatec/react-features)
[![Travis CI Build](https://api.travis-ci.org/uatec/react-features.svg)](https://travis-ci.org/uatec/react-features)

## Get Started

This package is available on npm as [react-features](https://www.npmjs.com/package/react-features).

## Example Usage

1: Declare your feature configuration:

``` javascript
var featureConfig = {
    hello: true,
    worlds: 5
};
```

2: Inject your config in to the feature container, and render your features

``` javascript
<FeatureContainer features={featureConfig}>
    <Feature featureKey='hello'>
        <h1>
            Hello,
        </h1>
    </Feature>
    <Feature featureKey="worlds">
        <WorldComponent />
    </Feature>
</FeatureContainer>
```

3: Consume your feature config in a component as props

``` javascript
class WorldComponent extends React.Component {
    render() {
        return <div>
            {this.props.worlds} worlds
        </div>;
    }
}
```

## Demo

You can view the demo running in webpack-dev-server to see the components in action.

``` javascript
npm start
open http://localhost:8080/public
```

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