Delete deprecated React.ReactChild
refactor: delete deprecated React.ReactChild (#37551)
Delete deprecated React.ReactChildrefactordelete deprecated react reactchild
Committed by bowen-wu
commit message
refactor: delete deprecated React.ReactChild (#37551)
use React.ReactElement | string | number to replace the deprecated React.ReactChildEditor assessment
The subject `refactor: delete deprecated React.ReactChild` names the removed API and the reason — deprecation — concisely. The body earns its place by specifying the replacement type union, React.ReactElement together with string and number, which is exactly the migration knowledge a reader wants. The refactor type fits an internal type cleanup with no behavior change. No scope is attached, tolerable for a cross-cutting type swap. No footer is needed. Hygiene is good, with no junk. Subject and body together make this genuinely instructive.