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.
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.