Fetching data with ReactJs using Pokemon API
useEffect has been used to synchronize external effects with the internal reactjs component state. Effects vary based on their source. it could be an API, an update made in the DOM or any other source that comes from the outside of a reactjs component lifecycle.