July 10, 2020

Snippets

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…