Loader HOC

Babita Ji is working on a component to display user list which is taking 3 seconds to populate and meanwhile the screen is blank. Help her write the logic for Higher Order Component which will return Loading... Please, Wait! in p tag until user list is available to display.

Hint: Higher order component will return <p>Loading... Please, Wait!</p> if isLoading props is true.



Solve the practice problems to earn    DevCoin image 
Coding Area

Copyright © 2022 opendevs

Learn ● Develop ● Ace
All illustrations by Storyset