Commit Graph

8 Commits

Author SHA1 Message Date
Gil Birman
1733557ac4 [react] inline export syntax 2015-08-28 11:15:32 -07:00
Dace Willmott
933b367e6c update spelling to clarify JSX rather than JS 2015-08-27 14:51:24 -04:00
Jordan Harband
c4fdbc2742 Recommend exporting propTypes as a named export
By exporting `propTypes` as a named export *as well* as attaching them to the "class", they can be explicitly imported by tests and other components in a way that aligns with the future ES6 module dependency graph, rather than as an arbitrary property that isn't statically verifiable. Doing both is great imo.

Thoughts?
2015-08-17 20:42:58 -07:00
Josh Perez
4b70374b9c Update React style guide with new rules
This formalizes the rules that we've been following for class extends React.Component and also updates our ordering with whats in the eslintrc file.
2015-07-16 10:42:26 -07:00
Horace Ko
d2792f27cb Recommend using .jsx extension for React components, rather than .js. 2015-06-25 11:54:22 -07:00
ycavatars
7a7bec17f3 add missing componentDidUpdate 2015-06-08 12:56:32 +08:00
Alvin Sng
2595cb6724 removed alpha sort, changed jsx exten to js, added method prefix rule, added camelCase for props 2015-04-30 13:08:58 -07:00
Alvin Sng
3764337df2 React/JSX Style Guide 2015-04-29 15:29:51 -07:00