How to format JavaScript date and time with Intl.DateFormat

Intl Object in JavaScript Intl ( internationalization )is an in-built Object in JavaScript for language-sensitive formatting. It includes constructors for formatting strings, lists, numbers, and dates and times. In this post, I am going to talk about JavaScript date and time formatting with Intl.DateTimeFormat() constructor. Intl.DateTimeFormat() Intl.DateTimeFormat() constructor creates an instance of Intl.DateTimeFormat. You can …

How to format JavaScript date and time with Intl.DateFormat Read More »

How to use React useMemo hook to improve performance

React useMemo hook One of the ways that you can improve the performance of React apps is by using the useMemo hook. This hook prevents expensive calculations from running on every render. The React useMemo takes two arguments: a function and a dependency array. useMemo( function, dependancy_array) Now, let us see how useMemo work by an …

How to use React useMemo hook to improve performance Read More »

Scroll to Top