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.
Advice Generator App
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
- Solution URL: Solution URL
- Live Site URL: Live Site URL
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- JavaScript
- Axios
Improved on my skills on using axios to get data from JSON APIs.
const getAdvice = async () => {
try {
const response = await axios.get('https://api...');
console.log(response);
} catch (error) {
console.error(error);
}
}
- Using axios to get data from JSON APIs.
- Axios - This helped me have a more cleaner and simple code. I really liked this pattern and will use it going forward.
- Frontend Mentor - @wuzgood98
- Twitter - @wuz_goood
Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.
I give credits to myself for being able to complete this project without asking for help and or looking for answers on the internet.