Software Engineer | Content Specialist.

How to Avoid Unnecessary Re-rendering in React

React components have evolved a long way from their inception. Still, many developers find it hard to fix unnecessary re-renderings. However, there are many approaches out there to avoid this issue.

In this article, I will discuss 5 methods to avoid unnecessary re-renderings in React components.

1. Memoization using useMemo() and UseCallback() Hooks

Memoization enables your code…

Using the Saga pattern in Microservice transactions

Using the microservices architecture has many benefits. It has become the norm for many large-scale applications. However, Microservices also comes with several challenges. One such challenge is handling transactions that span across multiple services.

So, in this article, I will discuss how we can overcome this by using Saga Pattern.

Why We Need Saga Pattern?

JavaScript Object.freeze() vs Object.seal()

Object immutability is an important concept in any programming language. It restricts object modifications and prevents unwanted changes.

In this article, I will discuss how we can implement object immutability in JavaScript using freeze() and seal() methods.

Need of Object Immutability in JavaScript

Before discussing freeze() and seal() methods, let’s discuss object immutability in JavaScript a…

How to optimize your application by reducing bundle size

Today, we use JavaScript heavily in web development, and we can find many applications with large bundle sizes. However, beyond a certain limit, it starts to affect the application performance.

In this article, I will discuss 5 techniques to reduce the JavaScript bundle size to avoid any performance bottlenecks.

1. Code Splitting with Webpack

Code…

Best practices implementing localization for React Components that are sharable across projects

DISCLAIMER: This article reflects my own personal preferences. It should not be seen as a formal recommendation.

Implementing localization with React is pretty straightforward, and many libraries are there to assist in the development.

But have you ever wondered how to implement localization for React components that are independent and…

How to Choose the Best AWS Storage Option for Your Project

Amazon web services are widely used around the world for storage options. However, choosing a storage option is not easy since each of them has unique features and costs.

So, in this article, I will discuss AWS EBS, EFS, and S3 with their features, usability, and cost.

What is AWS EBS?

AWS EBS (Elastic…

Chameera Dulanga

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store