Last active
          April 19, 2020 01:54 
        
      - 
      
- 
        Save iamthesiz/c8fdf0e6c232638719909a72b79a7a77 to your computer and use it in GitHub Desktop. 
    for blog post
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const { data: todos, loading } = useFetch('https://jsonplaceholder.typicode.com/todos', { | |
| data: [], // <- we set this so our initial `data` is an array | |
| }, []) // <- this empty array signifies, run onMount | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment