Skip to content

shubhkush1234/hooks-data-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UseEffect hook:

the effect function in the useEffect hook runs every render. When state is set, the component re renders. So, if we are making API call in use effect and setting it to state, it will fall into infinite loop. So, need to pass second parameter in effect function as [].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published