'App' cannot be used as a JSX component.


Your App() function must return a REACT component. You can simply put <></> or a div or whatever.

Does it need a return statement?
return ( <> </>)

Yes. Something like this … because it returns an “element” it’s a react component.

function myComponent () {
    return (
        <>
        </>
    );
}