JavaScript
React
Post image

Sparse vs Dense Arrays in JavaScript

Posted October 27, 2021
What's the difference between sparse and dence arrays in JavaScript
Continue reading ➞
Post image

How to Fill an Array with Initial Values in JavaScript

Posted October 19, 2021
How to initialize an array with initial values in JavaScript using array.fill(), Array.from(), or array.map()
Continue reading ➞
Post image

Covariance and Contravariance in TypeScript

Updated January 11, 2022
Covariance and contravariance are the concepts behind the subtyping of composable types.
Continue reading ➞
Post image

What are Higher-Order Functions in JavaScript?

The higher-order function accept as arguments or return other functions.
Continue reading ➞
Post image

How to Use TypeScript with React Components

Posted September 29, 2021
How to use TypeScript to type React components: validate props, mark props as optional.
Continue reading ➞
Post image

Index Signatures in TypeScript

Posted September 22, 2021
Index signatures in TypeScript let's you annotate objects of unknown structure.
Continue reading ➞
Post image

An Easy Guide to React useReducer() Hook

Posted September 15, 2021
How to use React useReducer() hook to manage complex state: initial state, action object, dispatch, reducer.
Continue reading ➞
Post image

unknown vs any in TypeScript

Posted September 8, 2021
What is the difference between unknown and any types in TypeScript.
Continue reading ➞
Post image

A Guide to React Context and useContext() Hook

Posted September 2, 2021
The React context provides data to components no matter how deep they are in the components hierarchy.
Continue reading ➞
Post image

How to Use Promise.any()

How to use the Promise.any() to get the first fulfilled promise from an array of promises.
Continue reading ➞

Quality posts into your inbox

I regularly publish posts containing:

  • Important JavaScript concepts explained in simple words
  • Overview of new JavaScript features
  • How to use TypeScript and typing
  • Software design and good coding practices

Subscribe to my newsletter to get them right into your inbox.

Join 6324 other subscribers.
Dmitri Pavlutin

About Dmitri Pavlutin

Tech writer and coach. My daily routine consists of (but not limited to) drinking coffee, coding, writing, coaching, overcoming boredom 😉.