From cee53ad6c16fe197804528610b68256b31ede42b Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 19 Oct 2015 10:25:41 +0200 Subject: [PATCH] Fixed documentation for stateless react components --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 956095f..ee0941d 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ The above command will create a new component, as well as its stylesheet and a b ## Generating new stateless functional components ``` -yo react-webpack:component:stateless my/namespaced/components/name +yo react-webpack:component my/namespaced/components/name --stateless ``` Stateless functional components where introduced in React v0.14. They have a much shorter syntax than regular ones and no state or lifecycle methods at all. Please read the [React 0.14 release notes](https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html) to get more information about those components.