In my last post, I wrote about how to mock JavaScript Fetch API on Jest using TypeScript. You can check it out here. Now I will demonstrate how to mock an XMLHttpRequest (XHR) using the same stack: Jest and TypeScript.
Getting started with GraphQL
For a long time, the world of API had been relying on REST and SOAP. Simple Object Access Protocol (SOAP) was invented in 1998, while Representational State Transfer (REST) came into existence in 2000. These two have dominated application programming interfaces for almost one and a half decades.
Sponsor leonardomso/33-js-concepts
This repository was created with the intention of helping developers master their concepts in JavaScript. It is not a requirement, but a guide for future studies. It is based on an article written by Stephen Curtis and you can read it here.
My favourite Javascript learning resources on Github ?
I started to learn Javascript about a year ago, there are so many online tutorials, blogs, courses and even the GitHub it’s not only the play I push my codes, but also a place to learn! And I realised that the most important thing is to understand the core concepts of JavaScript and get your hands d
gyp: No Xcode or CLT version detected macOS Catalina | Anansewaa
Did you recently update your macOS Catalina to version 10.15.2? If you did, then you probably in the same boat too. What I immediately noticed from my terminal is this new shiny error about gyp: No Xcode or CLT version detected any time I ran either yarn install or npm install
Simple PHP code to push files to AWS S3
So you have a web application, website or game with a PHP back-end. One of your use case is saving files to disk (images, Excel or what not). Its 2017 and you figure you should probably use a storage service instead of saving and serving files from your server.
An introduction to scope in JavaScript
Check out my Discover Functional JavaScript book. “An introduction to scope in JavaScript” is published by Cristian Salcescu
4 Major Patterns for Accessible Drag and Drop
In order for web pages and applications to be truly accessible, a user must be able to do anything with a keyboard that can be done with a mouse. When it comes to drag and drop, I’m often asked if it is acceptable to provide an accessible workaround.
Overview of how does CSS works behind the scenes?
Let’s start by understanding what actually happens to our CSS code when we load up a web page in a browser. When a browser starts to load the initial HTML file, it takes the loaded HTML code and parses it, which means that it will decode the code line by line.
Um. You should change your title to “Understanding static in React and possibly future versions of…
Um. You should change your title to “Understanding static in React and possibly future versions of JS”. Static properties (not methods) are available in React, because of this Babel plug-in, which is a precursor to this ES suggestion (which is not yet implemented).