We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Eslint does not work if the jsx key is missed in conditions
Screenshot:
Code:
const Test = (): React.ReactNode => { const list = [1, 2, 3, 4, 5]; return ( <div> {list.map(item => { if (item < 2) { /* The eslint error didn't work: */ return <div>{item}</div>; } return <div />; })} </div> ); };