Popular posts

JavaScript
React
Post image

What's a Method in JavaScript?

A method is a function that belongs to an object and executed with that object as a context.
Continue reading ➞
Post image

array.sort() Does Not Simply Sort Numbers in JavaScript

array.sort() method, when invoked without arguments, doesn't sort numbers as you might expect.
Continue reading ➞
Post image

How to Solve the Infinite Loop of React.useEffect()

Updated February 26, 2023
Be careful when using React.useEffect() hook because it can generate infinite loops.
Continue reading ➞
Post image

The New Array Method You'll Enjoy: array.at(index)

Posted January 12, 2021
array.at(index) method in JavaScript accesses array items at positive and (finally!) at negative indexes.
Continue reading ➞
Post image

What's the Difference between DOM Node and Element?

Posted January 5, 2021
What's the difference between a DOM node and an element? Let's find out!
Continue reading ➞
Post image

Why Promises Are Faster Than setTimeout()?

Why an immidiately resolved promise is faster then an immediate timeout?
Continue reading ➞
Post image

Everything About Callback Functions in JavaScript

Posted December 22, 2020
The callback is a function being called by another function, either synchronously or asynchronously.
Continue reading ➞
Post image

How React Updates State

Posted December 15, 2020
If you're updating the state of a React component, expect the state variable to receive the new value on the next rendering.
Continue reading ➞
Post image

5 Mistakes to Avoid When Using React Hooks

Common mistakes and anti-patterns to avoid when using React hooks.
Continue reading ➞
Post image

5 Best Practices to Write Quality JavaScript Variables

5 best practices on how to write quality JavaScript variables: prefer const, minimize scope, close to use place, and more.
Continue reading ➞
prev1
[...]
678
[...]
18next