score:0

remove {} from el1 props, because you are not specifiing object in prop types, and you have there empty object instead of undefined

and just my recommendation is to specify types of props like that:

interface iprops {
children:any
}
    
const children = ({children}: iprops) => {
    return (
       {children}
)};

instead of specifying type of component. its subjective but for me its easier to read.


Related Query

More Query from same tag