Legacy React APIs
These APIs are exported from the react
package, but they are not recommended for use in newly written code. See the linked individual API pages for the suggested alternatives.
Legacy APIs
Children
lets you manipulate and transform the JSX received as thechildren
prop. See alternatives.cloneElement
lets you create a React element using another element as a starting point. See alternatives.Component
lets you define a React component as a JavaScript class. See alternatives.createElement
lets you create a React element. Typically, you’ll use JSX instead.createRef
creates a ref object which can contain arbitrary value. See alternatives.isValidElement
checks whether a value is a React element. Typically used withcloneElement
.PureComponent
is similar toComponent
, but it skip re-renders with same props. See alternatives.
Deprecated APIs
createFactory
lets you create a function that produces React elements of a certain type.