[](https://www.bithound.io/github/uatec/react-features) [](
npm install react-features




This package is available on npm as react-features.
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`
Hello,
3: Consume your feature config in a component as props
` javascript`
class WorldComponent extends React.Component {
render() {
return ;
{this.props.worlds} worlds
}
}
You can view the demo running in webpack-dev-server to see the components in action.
` javascript``
npm start
open http://localhost:8080/public