diff --git a/docs/rules/function-component-definition.md b/docs/rules/function-component-definition.md index 7d4226503e..107cc20100 100644 --- a/docs/rules/function-component-definition.md +++ b/docs/rules/function-component-definition.md @@ -86,7 +86,7 @@ function getComponent () { // only arrow functions for unnamed components // [2, { "unnamedComponents": "arrow-function" }] function getComponent () { - return (props) => { + return function (props) { return
; }; } @@ -118,7 +118,7 @@ var Component = (props) => { // only function expressions for unnamed components // [2, { "unnamedComponents": "function-expression" }] function getComponent () { - return (props) => { + return function (props) { return
; }; } @@ -251,4 +251,4 @@ function getComponent() { ## When not to use -If you are not interested in consistent types of function components. \ No newline at end of file +If you are not interested in consistent types of function components.