const OuterDefinition = () => {
// You then have another definition inside it as thus
const InnerDefintion = () => {
// Rest of inner component definitio return ...
}
// Rest of outer component definitionreturn ...
}
Tried formatting it with spaces but it seems Hashnode doesn't preserve whitespaces
Yes thank you for helping out with the explanation! Chrismarcel James