I have a very simple functional component as follows:
import * as React from \'react\';
export interface AuxProps {
children: React.ReactNode
}
con
React components should have a single wrapper node or return an array of nodes.
Your component has two nodes div and main.
Try to wrap your children in a div in Aux component.
import * as React from 'react';
export interface AuxProps {
children: React.ReactNode
}
const aux = (props: AuxProps) => ({props.children});
export default aux;