How to fetch data with React Hooks?