const ShowHide = () => {
return <Item/>;
};
const Item = () => {
return(
//few lines of code
);
};
Here, the functional component ShowHide calls component 'Item'. Item is an arrow function and it is not hoisted.
How is it possible to call Item before it is declared?