This is how to add state to a function component in React 16.7.0-alpha using the useState hook
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.