contrib-subgen-react-webpack-container
v0.0.3
Published
A Container Subgenerator for Generator React Webpack
Downloads
7
Readme
contrib-subgen-react-webpack-container
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.