I thought my React form was broken… until I understood e.preventDefault()e.preventDefault() prevents page reloads but preserves the built-in behavior of forms, letting React take control of the UI.4 min read·kumsomi.hashnode.dev1Jun 15
Adding react router to a react appIntroduction We mostly use react-router for changing the routes of our project. Let's say I'm building an e-commerce app that would take me to different pages like the home page, product page, cart page, wishlist page, and orders page. To redirect my...6 min read·kumsomi.hashnode.dev1Sep 1, 2023
Input Search in React - Machine coding questionSearching for a text from a huge list can be done using includes method of javascript and the list can be filtered out using filter method of javascript. Introduction to includes() in javascript include() in js string: It would give us either true or...2 min read·kumsomi.hashnode.dev1Aug 14, 2023
Creating a todo app using Express.js and Rest APIIntroduction What is Express? Express is a framework of Node.js, which means it is used to handle the backend of a web application, but it has more features than Node.js as it is built on top of it. eg:- Express offers plugins, template code, middlew...7 min read·kumsomi.hashnode.devJun 4, 2023
Asynchronous JavascriptJavascript is a synchronous, single-threaded language, meaning each line of code will be executed one after the other inside the call stack and on the main thread. If we wait for a time-taking code to finish, the entire code written after that partic...1 min read·kumsomi.hashnode.devMay 28, 2023