We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a33db3b commit 30af256Copy full SHA for 30af256
docs/rules/prefer-stateless-function.md
@@ -27,7 +27,11 @@ var Hello = React.createClass({
27
The following pattern is not considered a warning:
28
29
```jsx
30
-const Foo = function(props) {
+const Foo = function(props, context) {
31
+ const {
32
+ location
33
+ } = context.router;
34
+
35
return <div>{props.foo}</div>;
36
};
37
```
0 commit comments