Module React

Provides classes for working with React and Preact code.

Import path

semmle.javascript.frameworks.React

Imports

javascript

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

Predicates

isReactRef

DEPRECATED: Use react() instead.

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.