How to create React functional components in TypeScript

TypeScript is a superset of JavaScript. Unlike JavaScript, Which is dynamically typed, it is statically typed.  This means you will know the types of variables used in your code at the compile time. This helps you as a developer to check for typed-related errors before the code is executed. If there are no compiled errors,

How to create React functional components in TypeScript Read More »

React.lazy and Suspense make code-splitting easy

React.lazy and Suspense make React developer life easy. React.lazy helps in code-splitting and Suspense backup React.lazy in loading state. Before, we go into details let’s start things simply. let’s be familiar with some background knowledge. What is Bundling? Bundling is the process of putting code in many files into one file. While bundling is essential

React.lazy and Suspense make code-splitting easy Read More »

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