Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 588 Bytes

File metadata and controls

26 lines (18 loc) · 588 Bytes

@eslint-react/core / isRenderPropLoose

Function: isRenderPropLoose()

function isRenderPropLoose(context: RuleContext, node: JSXAttribute): boolean;

Unsafe check whether given JSXAttribute is a render prop

_ = <Component renderRow={() => <div />} />
`              ^^^^^^^^^^^^^^^^^^^^^^^^^  `

Parameters

Parameter Type Description
context RuleContext The rule context
node JSXAttribute The AST node to check

Returns

boolean

true if node is a render prop, false if not