π Reference
π Chapter
type ReactChild = ReactElement | string | number;
type ReactChild = ReactElement | ReactText;
ReactChild
Β λΒ ReactNode
Β νμ
μ μ μ ν λ΄λ‘μ(narrowing)ν νμ
μ΄λ€.ReactElement
Β νμ
μ΄ λ¦¬μ‘νΈ μμ κ°μ²΄λ§μ νμ©νλ€λ©΄,Β ReactChild
Β νμ
μ μ¬κΈ°μ μμ νμ
κΉμ§λ νμ©νλ νμ
μ΄λ€.