Closed deepak closed 8 years ago
That's a good point. I could definitely mention about it there. Thanks. 👍
There's actually a gotcha related to statics. If you wrap your classes (connect
, etc.), you can get interesting behavior since they won't be visible outside anymore (hidden behind the wrapper). That would be worth documenting too.
can use ES6 static method syntax in 4.8 Understanding React Components
code sample there can be changed to use
ES6 static method
also need to add a section on
static
methods tolanguage_features
it does have a section on class-properties-and-property-initializers