CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1-dev (changelog, source)
Search

Module React

Provides classes for working with React and Preact code.

Import path

import semmle.javascript.frameworks.React

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

react

Gets a reference to the ‘React’ object.

Classes

ES2015Component

A React component implemented as a class

ES5Component

A legacy React component implemented using React.createClass or create-react-class.

FunctionalComponent

A React component implemented as a plain function.

PreactComponent

A Preact component.

ReactComponent

An object that implements the React component interface.

ReactElementDefinition

A DOM element created by a React function.