@eslint-react/core / isRenderPropLoose
function isRenderPropLoose(context: RuleContext, node: JSXAttribute): boolean;Unsafe check whether given JSXAttribute is a render prop
_ = <Component renderRow={() => <div />} />
` ^^^^^^^^^^^^^^^^^^^^^^^^^ `| Parameter | Type | Description |
|---|---|---|
context |
RuleContext |
The rule context |
node |
JSXAttribute |
The AST node to check |
boolean
true if node is a render prop, false if not