Advice generator app with React/TypeScript/TailwindCSS
Design comparison
Solution retrospective
Howdy community.
It been a while since my last solution but here is my new one. This project is pretty small but really good to get into how to use TypeScript with React. Maybe it is not perfect but this is my solution and if you don't like something just let's disscuss about it.
Please, leave your feedback and let me know what I could improve here. And see you next time!
Community feedback
- @volod-onePosted over 2 years ago
By the way. I realize that my app have some problems with fething data in Firefox browser. May I have any clue what is going on there and why I cannot get any new advice after smash the button?
0@zougari47Posted over 2 years ago@DevilDoctor27 I was trying to comment that, I'm using firefox.
you need to clear cache for the HTTP request, I see your code you're using Axios, I didn't learn it yet, this article may help you
https://thewebdev.info/2021/11/18/how-to-disable-browser-cache-with-javascript-axios/
happy coding
0@volod-onePosted over 2 years ago@zougari47 Well, seems like I am not able to use any headers in my requests, otherwise I just get blocked by cors.
0@volod-onePosted over 2 years ago@zougari47 here is better solution
const response = await axios.get(url, { params: { t: new Date().getTime(), }, })
instead trying change headers just add some parameters
0@zougari47Posted over 2 years ago@DevilDoctor27 I didn't learn Axios yet I use fetch API instead, you fix the problem, good job 🎉.
0
Please log in to post a comment
Log in with GitHubJoin 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