react js export component method code example Example: export default function react export default () => ( <pre>Header</pre> )