React Context is a powerful feature. If your React application grows in size beyond a small application, there is nothing wrong in giving it a try. Many third-party libraries like Redux are using it under the hood anyway.

First, you have to create the React Context itself which gives you…

React’s useMemo Hook can be used to optimize the computation costs of your React function components. We will go through an example component to illustrate the problem first, and then solve it with React’s useMemo Hook.

Keep in mind that most of the performance optimizations in React are premature. React…

Firebase Logo

After we built a full application in React, the final step is deployment, the tipping point of getting your ideas to public. So we will use Firebase Hosting for the deployment.

In this blog, I want to guide you through deploying your React application to Firebase. It works for create-react-app…

Use the application generator tool, express-generator, to quickly create an application skeleton. You can run the application generator with the npx command (available in Node.js 8.2.0).

$ npx express-generator

For earlier Node versions, install the application generator as a global npm package and then launch it.

$ npm install -g…

Route parameters are named URL segments that are used to capture the values specified at their position in the URL. The captured values are populated in the req.params object, with the name of the route parameter specified in the path as their respective keys.

Route path: /users/:userId/books/:bookId
Request URL: http://localhost:3000/users/34/books/8989
req.params: {…

Sandeep Kumar Dev

MERN stack Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store