What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-21 22:45:22
api fetch post
//Obj of data to send in future like a dummyDb const data = { username: 'example' }; //POST request with body equal on data in JSON format fetch('https://example.com/profile', { method: 'POST', headers: { 'Content-Type': 'application/json', }, ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5