opendevs
opendevs logo
CoursesInterviewsBlogs

Loader HOC

Solidify your knowledge of Higher Order Components by solving this problem.

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 this medium problem to earn  2  DevCoin image
Output
Coding Area
opendevs logo
CoursesFAQsContact UsPrivacy PolicyTerms Of Service
Copyright © 2023 opendevs
Learn ● Develop ● Ace
All illustrations by Storyset