Kind: Class
React Selector Extractor
Methods
| Method | Signature | Returns |
|---|---|---|
extractFromJsx | extractFromJsx(jsx: string) | ExtractedSelectors |
Where it refuses work
ReactSelectorExtractorstops the work with an early return when!jsx || jsx.trim().length === 0.ReactSelectorExtractorstops the work with an early return whentestId.ReactSelectorExtractorstops the work with an early return whenid.ReactSelectorExtractorstops the work with an early return whenname.ReactSelectorExtractorstops the work with an early return whenfirstClass.ReactSelectorExtractorstops the work with an early return whenmatch.
Was this page helpful?