//Use a pure stateless component export const myComponent = () => return () // Stateful export class myComponent extends React.Component { //use Hooks for more comfort ... }