December 7, 2023

Snippets

Nextjs custom config setup with scss

Next Js is a very powerful react framework that lets you render React on the server side. Next Js comes with a lot…

How to pretty print JSON in react?

In React for printing JSON in a pretty format is not that straight forward as angular. In angular, we can use JSON pipe…

How to check the Javascript object is empty or not?

In Javascript, there is no straight forward way to check javascript object is empty or not. Like var str1 = ''; if(!str1){ //…

How to iterate through object in javascript?

If you are a javascript developer, you need to deal with javascript objects every day. Javascript object has a large use case but…

Difference between angular change and ngModelChange

while developing an angular application, You might have come into the situation where you need to handle change events for particular input then…

How to add images in react?

In react, we can’t add image straight as below which we used to do in HTML <img src='pathtoimage/img.png' /> Because jsx doesn’t understand…

Replacing a character from string by index using javascript?

while Development, you might face how to replace character from a given string at a particular index. Here are the top three ways…

How to get a DOM element in react?

In react, there may be a case you need to perform some operation on dom elements or you will be using some third…

Enabling react apps for IE11

In this modern web application era, Now es7 also got released but still, we need to give support to some legacy browsers like…