Skip to content

Commit 8514f74

Browse files
committed
Merge pull request airbnb#551 from majapw/patch-1
`export default` should not be inline with the class declaration
2 parents a4e5858 + efe7507 commit 8514f74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

react/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
text: 'Hello World',
275275
};
276276
277-
export default class Link extends Component {
277+
class Link extends Component {
278278
static methodsAreOk() {
279279
return true;
280280
}
@@ -286,6 +286,8 @@
286286
287287
Link.propTypes = propTypes;
288288
Link.defaultProps = defaultProps;
289+
290+
export default Link;
289291
```
290292
291293
- Ordering for React.createClass:

0 commit comments

Comments
 (0)