diff --git a/README.md b/README.md index d0e8247..c667b28 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,45 @@ And `src/styles/Foo.css` (or .sass, .less etc...) : } ``` +### rich flag + +For all you lazy programmers out there, we've added another shortcut - `rich` flag: +```bash +yo react-webpack:c foofoo --rich +``` +This will give you all of react component's most common stuff : + ```` + var React = require('react/addons'); + + require('styles/Foofoo.sass'); + + var Foofoo = React.createClass({ + mixins: [], + getInitialState: function() { return({}) }, + getDefaultProps: function() {}, + componentWillMount: function() {}, + componentDidMount: function() {}, + shouldComponentUpdate: function() {}, + componentDidUpdate: function() {}, + componentWillUnmount: function() {}, + + render: function () { + return ( +
Content for Foofoo
+