interface icon indicating copy to clipboard operation
interface copied to clipboard

The SegmentedControl Component use the “cloneElement”, it‘s an uncommand usage in React official documents

Open mameikagou opened this issue 1 year ago • 1 comments

The SegmentedControl Component use the “cloneElement”, it‘s an uncommand usage in React official documents; react doc for cloneElement

packages/ui/src/components/SegmentedControl/SegmentedControl.tsx

image image

mameikagou avatar Nov 21 '24 11:11 mameikagou

It maybe because of the "cloneElement" uses an instance for a component instead of recreating a component instance every render.

mameikagou avatar Nov 21 '24 11:11 mameikagou