How to Set Focus on an Input Element in React using Hooks

How to Set Focus on an Input Element in React using Hooks

In this tutorial, I will show you how to programmatically set the focus to an input element using React.js and hooks. We will use two hooks, useRef and useEffect. Set up the Project All you need is a functional component. I have created a React app from scratch using create-react-app. Then replace everything inside the…

How to Connect MongoDB Atlas with Node js using Mongoose
| |

How to Connect MongoDB Atlas with Node js using Mongoose

In this article, we are going to create a simple express backend. The express app will connect to a MongoDB database in the cloud with CRUD operations. We will use Mongoose to create models with schema validation. We will host our database in the cloud with MongoDB Atlas. At the end we will test our…