function exampleFetch(){
fetch('https://reqres.in/api/users/2').then(function(response) {
return response.text();
}).then(function(string) {
console.log(string);
document.getElementById("my-div-id").innerHTML=string;
}).catch(function(err) {
console.log('Fetch Error', err);
});
}
exampleFetch();
async function exampleFetch() {
const response = await fetch('https://reqres.in/api/users/2');
const json = await response.json();
console.log(json);
}
exampleFetch()
- https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs
- https://getbootstrap.com/docs/5.3/getting-started/download
- personal stash/rant on web guis html css javscript
#hohoho
https://htmx.org
https://twitter.com/htmx_org