Design comparison
Solution retrospective
I tried to learn about Bootstrap as I had only used it occasionally without fully understanding it. In my project, I added the Bootstrap framework by including its CDN in my HTML file.
Apart from that, I used the built-in fetch function in JavaScript within an event listener. I'm not sure if this is considered a good practice, so any feedback would be appreciated.
Community feedback
- @sandro21-glitchPosted over 1 year ago
Hi There
including the Bootstrap framework via its CDN in your HTML file is a common and convenient way to add Bootstrap to your project. It allows you to access the Bootstrap styles and functionality without having to download and host the framework files yourself. This approach is widely used and generally considered a good practice.
As for using the built-in fetch function in JavaScript within an event listener, it's a valid approach for making HTTP requests and retrieving data from a server. The fetch function provides a modern and flexible way to work with asynchronous data fetching. It returns a Promise that resolves to the response from the server, which you can then handle accordingly.
0@Aysha-pyPosted over 1 year ago@sandro21-glitch
Thank you, Sandro. Glad to know my approach is widely used and generally considered a good practice.
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