From f4d42d6cfde66542b8991b1130a73a1cbc6f8ca4 Mon Sep 17 00:00:00 2001 From: Sukka Date: Sat, 29 Oct 2022 16:31:04 +0800 Subject: [PATCH] [Beta] fix typo in apis/react/cloneElement (#5201) --- beta/src/content/apis/react/cloneElement.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beta/src/content/apis/react/cloneElement.md b/beta/src/content/apis/react/cloneElement.md index 114553d8..8350eb59 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(