Fetch API in ReactJS Projects

The most basic thing I learned after fundamantals was using APIs in ReactJS. Although not easy, it took sometime to master its concepts. There are 3 ways to Fetch data from API: Using Fetch with Lifecycle Method – componentDidMount in stateful/class component Using Fetch with useState hook in stateless/functional component Using Axios AJAX call inContinue reading “Fetch API in ReactJS Projects”

Error – TypeError: Cannot read property ‘map’ of undefined

Often while coding, there are instances when we tend to face challenges in the form of errors. I have been through this time a lot. In ReactJS, I have encountered this error multiple times which says, TypeError: Cannot read property ‘map’ of undefined Mostly while using API Fetch in my App this error pops up.Continue reading “Error – TypeError: Cannot read property ‘map’ of undefined”