I’ve built an app with "components" that all begin like this:
export const SomeComponent = (props: SomeComponentProps): React.ReactElement => {
return (
<>
<div>some content</div>
</>
)
}
However now I’ve been Googling and it would seem as though this is not a "component" but an "element".
I’m having some difficulty telling if I’ve built my app correctly, all of my TSX/JSX files are set up like this and use "ReactElement" but an lot of results on the web show me things called "components" with a render method in them.
Should all of my components/elements in my app start with React.ReactElement
or have I done this entirely wrong?