eslint Expected an assignment or function call and instead saw an expression code example
Example 1: Expected an assignment or function call and instead saw an expression
Make sure to include "return()" within the code block.
export const Example = () => {
return (
<div>
<p>Don't forget "return" within your code block.</p>
</div>
)
}
Example 2: Line 7:13: Expected an assignment or function call and instead saw an expression no-unused-expressions
const Button = () => {
return <button>Hello world</button>
}