I have a very simple functional component as follows:
import * as React from \'react\'; export interface AuxProps { children: React.ReactNode } con
You can use ReactChildren and ReactChild:
ReactChildren
ReactChild
import React, { ReactChildren, ReactChild } from 'react'; interface AuxProps { children: ReactChild | ReactChildren; } const Aux = ({ children }: AuxProps) => ({children}); export default Aux;