You get a prop, fetch user data, render a badge. Easy? Think again.
This deceptively simple component tests your:
- ๐ง Understanding of useEffect dependencies
- ๐ต๏ธ Handling of race conditions
- ๐ซ Prevention of updates after unmount
- โ๏ธ Clean async logic with AbortController
- ๐ก Perfect for interviews โ and even better for real apps. ๐ Read it now https://javascript.plainenglish.io/react-interview-challenge-build-a-smart-profile-component-56459e37c3e2
Top comments (0)