DEV Community

Discussion on: React - Asynchronous Component Rendering Wrapper

Collapse
 
musyilmaz profile image
Mustafa YILMAZ

This seems an interesting way to handle promises in the components. Thanks for sharing :)

We were handling the promise results in every component with utilizing an higher component that is dedicated to that component. This seems an amazing way to reduce code replication

Collapse
 
sadarshannaiynar profile image
Adarsh • Edited

Yes the very same problem I faced and I was thinking how to come up with the solution to improve User Experience while reducing the redundancy. I arrived at a wrapper for that. But this wrapper can still be improved in a lot of ways.