Skip to content
Submitted 10 months ago

Responsive Advice Generator App using React & Tailwind CSS

react, tailwind-css
LVL 2
@geliettech
A solution to the Advice generator app challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

I’m most proud of how I integrated the Advice Slip API to display random advice dynamically and made the app fully responsive using Tailwind CSS. If I were to do it again, I’d add more user feedback elements like a loading spinner or toast notifications for a smoother experience. I’d also refactor some components for better reusability.

What challenges did you encounter, and how did you overcome them?

One challenge I faced was handling API data properly when it returned as an object instead of an array. I initially tried mapping through it, but later learned to access the object properties directly. I also encountered minor alignment and responsiveness issues, which I resolved by using Tailwind’s flexbox and grid utilities. Debugging through React DevTools helped a lot in spotting state-related issues.

What specific areas of your project would you like help with?

I’d love feedback on how to improve my component structure and optimize my API fetching logic. Suggestions on implementing better error handling or improving the loading experience using React best practices would also be appreciated.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Ogechi Uhegbu’s solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord