I have a very simple functional component as follows:
import * as React from \'react\'; export interface AuxProps { children: React.ReactNode } con
These answers appear to be outdated - React now has a built in type PropsWithChildren<{}>. It is defined similarly to some of the correct answers on this page:
PropsWithChildren<{}>
type PropsWithChildren = P & { children?: ReactNode };
= P & { children?: ReactNode };