Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1016 Bytes

File metadata and controls

24 lines (17 loc) · 1016 Bytes

contrib-subgen-react-webpack-container

Build Status

This is a sub generator for creating container components with Generator React Webpack v4. It is based on V4 of the generator (currently in beta). To inject the sub generator into Generator React Webpack, see the experimental generator-subgenext.

What it does

yo react-webpack:container foo
# Creates src/components/FooContainer.js

yo react-webpack:container foo --component
# Creates src/components/Foo.js and src/components/FooContainer.js. FooContainer.js renders <Foo />

The core generator's support for creating namespaced components as well as component options (e.g. --stateless, --nostyle) are supported when creating a --component along with the container.