Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 507 Bytes

File metadata and controls

21 lines (13 loc) · 507 Bytes

@eslint-react/core / isReactAPICall

Function: isReactAPICall()

function isReactAPICall(api: string): ReturnType;

Check if the node is a call expression to a specific React API

Parameters

Parameter Type Description
api string The React API name to check against

Returns

ReturnType

A predicate function to check if a node is a call to the API