# no-redundant-functions Forbids redundant functions that simply pass their arguments directly to another function in the same order. Arrow functions with single-line CallExpressions containing MemberExpressions (e.g. `console.log`) are ignored due to inconsistencies regarding `this`. ## Examples ### Correct ```js class Example extends Component { render() { return ; } } function Example() { return ; } ``` ```js class Example extends Component { render() { return ( ); } } function Example() { return ; } ``` ```js class Example extends Component { render() { return ; } } function Example() { return ; } ``` ````js function Example{ // raw functions that are opaque to react hook analysis should not be passed useEffect(() => foo()); return <> } ### Incorrect ```js class Example extends Component { render() { return ; } } function Example() { return ; } ````