reactjs : how to use "this.state" in export default function code example Example: export default function react export default () => ( <pre>Header</pre> )