From 80f3826dd854796d25244ad34782b9147b90db1d Mon Sep 17 00:00:00 2001 From: Veniamin Krol <153412+vkrol@users.noreply.github.com> Date: Sat, 28 Mar 2020 00:06:24 +0300 Subject: [PATCH] [Docs] `function-component-definition`: Fix unnamedComponents option examples --- docs/rules/function-component-definition.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.