function component how to export in reactjs code example Example: export default function react export default () => ( <pre>Header</pre> )