This is a solution to the Advice generator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Generate a new piece of advice by clicking the dice icon
Mobile (375px) | Desktop (1440px) |
---|---|
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- React - JS library
This was an exciting challenge, I was able to use react-query
for the first time to fetch the advice from the API and cache it, as well as handle the loading state. This is also the first time I test my work properly by insuring I mock the neccessary parts, like API endpoints.
Testing, testing, and testing. Yeah, I need to get better at it. It was also a bit difficult to handle error state for refetches in react-query
, so I'd like to understand that more in the future.
- Website - Mohamed ELIDRISSI
- Frontend Mentor - @elidrissidev
- Twitter - @elidrissidev
This project is licensed under the MIT License.