Accepted answer

React.ReactNode is more convenient way for passing markup to child components. It contains everything you can insert in JSX like <div>{passedContent}</div> It is used in many React component libraries. It makes sense to use React.ReactElement<any> only if you want to restrict customization to elements of particular class. For example React.ReactElement<ButtonProps>. It is useful if you want to clone passed element and append some props to it.

Related Query

More Query from same tag