JavaScript

Routing In React – react router dom

How to do routing in React App using react-router-dom. Creating pages and routing in react js example using react-router. npm i react-router-dom import {... Read more »

Create a React JS App using Vite

Initialize and build a React JS project using Vite. Use Vite instead of creating react app. Vite commands for creating a React typescript project.... Read more »

Vite + React – Live Project on Web Browser

Try out React js project using Vite instead of the create react app. Vite is latest and advanced option to create a react project... Read more »

React Bootstrap – Make Navbar Sticky

How to make React bootstrap navbar sticky. Bootstrap navbar sticky code for React JS Apps. To make the navbar sticky in the React Bootstrap... Read more »

Optional chaining (?.) in JavaScript Examples

What is the use of ?. operator in Javascript. Using ? with variables and objects in javascript codes. What is Optional chaining in Javascript... Read more »

Fix: Cannot read properties of null (reading ‘map’)

React JS map function throwing error cannot read properties of null solution. How to fix map function null error in React JS. If the... Read more »

Javascript: Variable undefined and no value / empty variable

Empty variable example in Javascript. Undefined variable example in Javascript. How to declare a variable with no value in javascript. How to declare an... Read more »

JavaScript: Check if null variable, object

How to check if a variable is null in JavaScript? How to check if an object is null in JS? Check if the variable... Read more »

Javascript Interview Questions, Solutions, Notes

The latest Javascript interview questions. Mostly asked interview questions in Javascript with answers and notes. Popular JS interview questions. Difference between undefined and empty... Read more »

Javascript String Methods – CheatSheet

JavaScript cheatsheet containing all the string manipulation functions. Manipulate the js strings using the string functions in Javascript. List of string functions in JS... Read more »