We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-render-return.md
When writing the render method in a component it is easy to forget to return the JSX content. This rule will warn if the return statement is missing.
render
return
Examples of incorrect code for this rule:
var Hello = createReactClass({ render() { <div>Hello</div>; } }); class Hello extends React.Component { render() { <div>Hello</div>; } }
Examples of correct code for this rule:
var Hello = createReactClass({ render() { return <div>Hello</div>; } }); class Hello extends React.Component { render() { return <div>Hello</div>; } }
The text was updated successfully, but these errors were encountered:
standard/eslint-config-standard-jsx@c9d5d67
No branches or pull requests
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-render-return.md
Enforce ES5 or ES6 class for returning value in render function (react/require-render-return)
When writing the
render
method in a component it is easy to forget to return the JSX content. This rule will warn if thereturn
statement is missing.Rule Details
Examples of incorrect code for this rule:
Examples of correct code for this rule:
The text was updated successfully, but these errors were encountered: