Skip to content

Commit

Permalink
[Docs] function-component-definition: Fix unnamedComponents option …
Browse files Browse the repository at this point in the history
…examples
  • Loading branch information
vkrol authored and ljharb committed Mar 27, 2020
1 parent e19287d commit 80f3826
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/function-component-definition.md
Expand Up @@ -86,7 +86,7 @@ function getComponent () {
// only arrow functions for unnamed components
// [2, { "unnamedComponents": "arrow-function" }]
function getComponent () {
return (props) => {
return function (props) {
return <div />;
};
}
Expand Down Expand Up @@ -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 <div />;
};
}
Expand Down Expand Up @@ -251,4 +251,4 @@ function getComponent() {

## When not to use

If you are not interested in consistent types of function components.
If you are not interested in consistent types of function components.

0 comments on commit 80f3826

Please sign in to comment.