patelnav / flux-container-create

Workaround for https://github.com/facebook/flux/issues/351

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flux-container-create

Workaround for facebookarchive/flux#351 based on comment by lazy8

Install

npm add flux-container-create or yarn add flux-container-create

Usage

Previously:

import {Container} from 'flux/utils';

class AwesomeComponent extends Component {
  ...
}
const container = Container.create(AwesomeComponent)

Now:

import FluxContainerCreate from 'flux-container-create';
class AwesomeComponent extends Component {
  ...
}
const container = FluxContainerCreate(AwesomeComponent)

About

Workaround for https://github.com/facebook/flux/issues/351


Languages

Language:JavaScript 100.0%