Skip to content

False positive for react/jsx-no-leaked-render #3292

@Robloche

Description

@Robloche

Following code triggers react/jsx-no-leaked-render although it's perfectly valid:

return <MyReactComponent isDisabled={foo && bar === 0} onClick={handleOnClick} />; 

with:

foo: boolean; bar: number; 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions