Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Best ways to do POST/GET request from JavaScript

I’m learning JavaScript. I want to perform GET and POST request from JavaScript to/from a Django Backend.

I was told that AJAX is outdated, that I should use a framework, like React, Angular or Vue. I’ll start to learn React, but first I would like to know if theres a modern/prefered way to perform API request from JavaScript.

In this article "fetch" is mentioned. Could be this the way to go?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You do not need to use a JS Framework to do so, and Javascript has modern features that can help you a lot. In fact, I totally agree with the "fetch" of the article you pined, and I always go for this kind of request if I am in vanilla Javascript.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading