I have a React component that takes children.
Getting a Typescript error:
Property 'children' is missing in type ... but required in type 'FixedWidthLayout'
That component is defined like a function statement.
export default function FixedWidthLayout { ... }
I don't want to write it like and expression..
i.e.
export const FixedWidthLayout = () => {...}
Therefore doing something like ...
const FixedWidthLayout: React.FC<Props> = () => {...}
..is not an option.
How is it possible to make this work with in Typescript with a function statement?