right way to export functional component react code example Example: export default function react export default () => ( <pre>Header</pre> )