This package has been deprecated

Author message:

No longer maintained

@mynewsdesk/react-feature-toggle

0.3.0 • Public • Published

A react component for toggling child components by using a property key or via redux state.

#requires

  • react
  • react-redux
  • redux

#example

  import React from "react";

  import { FeatureToggleConnected, Enabled, Disabled } from "@mynewsdesk/react-feature-toggle";

  export default () => (
    <FeatureToggleConnected featureName="foo">
      <Enabled>foo is enabled</Enabled>
      <Disabled>foo is disabled</Disabled>
    </FeatureToggleConnected>
  )

Readme

Keywords

none

Package Sidebar

Install

npm i @mynewsdesk/react-feature-toggle

Weekly Downloads

0

Version

0.3.0

License

MIT

Last publish

Collaborators

  • andreaszecher
  • josuakoschwitz
  • alexander.rothe
  • danielschnee
  • mynewsdesk-dev
  • alexaivars
  • joachimlindqvist
  • guusli
  • katekolosova
  • marianaalberto