I thought my React form was broken… until I understood e.preventDefault()I was building a simple React form. Nothing fancy. Just this: <form onSubmit={onSubmit}> <input value={userName} name="userName"/> <button type="submit">Add User</button> </form> I typed a n1Jun 15 · 4 min readkumsomi.hashnode.dev
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...1Sep 1, 2023 · 6 min readkumsomi.hashnode.dev
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...1Aug 14, 2023 · 2 min readkumsomi.hashnode.dev
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...Jun 4, 2023 · 7 min readkumsomi.hashnode.dev
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...May 28, 2023 · 1 min readkumsomi.hashnode.dev