diff --git a/beta/src/content/apis/react/cloneElement.md b/beta/src/content/apis/react/cloneElement.md index 114553d8b..8350eb59a 100644 --- a/beta/src/content/apis/react/cloneElement.md +++ b/beta/src/content/apis/react/cloneElement.md @@ -29,7 +29,7 @@ const clonedElement = cloneElement(element, props, ...children) To override the props of some React element, pass it to `cloneElement` with the props you want to override: ```js [[1, 5, ""], [2, 6, "{ isHighlighted: true }"], [3, 4, "clonedElement"]] -import { clonedElement } from 'react'; +import { cloneElement } from 'react'; // ... const clonedElement = cloneElement( @@ -650,7 +650,7 @@ This approach is particularly useful if you want to reuse this logic between dif Call `cloneElement` to create a React element based on the `element`, but with different `props` and `children`: ```js -import { clonedElement } from 'react'; +import { cloneElement } from 'react'; // ... const clonedElement = cloneElement(