1.0.2 • Published 7 years ago
flux-container-create v1.0.2
flux-container-create
Workaround for https://github.com/facebook/flux/issues/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)