Prerequisite — You will need to have a basic knowledge of CSS Selectors.
If there are two or more conflicting CSS rules that target the same DOM element, the browser follows some rules to determine which one is more specific and therefore wins out (gets applied).
In the above code snippet, we have two CSS rules pointing to the same div. But in this case, due to higher specificity (we will discuss in detail what this means below), the 2nd CSS rule wins and background color of the div becomes green.
Let’s now have a look at how to calculate…
Lets progressively build a Promise to understand its different parts
The asynchronous task we are going to be using is, to respond with the message ‘Successful’ if Math.random() returns a value greater than 0.5 …
Now for the long answer, let me try through 2 sample code snippets.
Middleware is the suggested way to extend Redux with custom functionality. The most common use case for middleware is to support asynchronous actions without much boilerplate code or a dependency on any library.
Before we dive into, we need to take a look at 2 topics: currying and composing of functions :
Currying is the way of constructing functions that allows you to