Skip to content

chore: update code comments according new docs #33017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/react/src/jsx/ReactJSXElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,8 @@ function jsxDEVImpl(
}

/**
* Create and return a new ReactElement of the given type.
* See https://reactjs.org/docs/react-api.html#createelement
* Create a React element with the given type, props, and children.
* See https://react.dev/reference/react/createElement
*/
export function createElement(type, config, children) {
if (__DEV__) {
Expand Down Expand Up @@ -784,8 +784,8 @@ export function cloneAndReplaceKey(oldElement, newKey) {
}

/**
* Clone and return a new ReactElement using element as the starting point.
* See https://reactjs.org/docs/react-api.html#cloneelement
* Create a new React element using another element as a starting point.
* See https://react.dev/reference/react/cloneElement
*/
export function cloneElement(element, config, children) {
if (element === null || element === undefined) {
Expand Down Expand Up @@ -911,8 +911,8 @@ function validateChildKeys(node, parentType) {
}

/**
* Verifies the object is a ReactElement.
* See https://reactjs.org/docs/react-api.html#isvalidelement
* Check whether object is a React element.
* See https://react.dev/reference/react/isValidElement
* @param {?object} object
* @return {boolean} True if `object` is a ReactElement.
* @final
Expand Down