Set Immediate() to rescue - testing components with async componentDidMount()
Scenario
we had a React class-based components on an older project and while implementing the feature change, we ended up calling an API from ComponentDidMount(). This made this function to be async since it involves a network call.
Sample code
asyn...
priyasukumar.hashnode.dev2 min read