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
Childrenlets you manipulate and transform the JSX received as thechildrenprop. See alternatives.cloneElementlets you create a React element using another element as a starting point. See alternatives.Componentlets you define a React component as a JavaScript class. See alternatives.createElementlets you create a React element. Typically, youβll use JSX instead.createRefcreates a ref object which can contain arbitrary value. See alternatives.