typescript react children Как указать тип
Primary tabs
Можно так:
import React from "react"; type ModalWindowPropsType = { children: React.ReactNode, } export default function ModalWindow(props: ModalWindowPropsType) { return ( <> {props.children} </> ); }
- Log in to post comments
- 1367 reads