Redux needs to be implemented in a standard and optimal way to avoid issues in your React App. When we start to develop a redux-based app, We will lead to decision fatigue on searching which the best practice. To avoid that kind of confusion. I will share the standard way to implement redux in your React App and also how you structure your react-redux…
We can see how to use Axios in an optimized and scalable way in a React app.
When you are building an API-based React app, an HTTP client is the core service that needs to be added to the architecture. There are many HTTP client libraries for React. When deciding which to choose, Axios might be the first choice of most developers.
Axios is an HTTP client library with many advantage features. It can be used in browsers and Node.js. In this article, we will see how to utilize all the advanced Axios features in a scalable and optimized way.
But the problem here is the cost of hosting the App. As the app users grow, we need to scale based on it and the cost to Increase! So here we can see the services that provide free hosting. Let’s Host.
Here are the 15 custom hooks to make your React component lightweight
React hooks is the trending word in the React community. I hope every React developer knows what hooks are. In simple words, hooks give the advantage to use lifecycle methods in functional components and also encourages us to write functional components.
Let’s dive into custom hooks! Custom hooks let you extract component logic into a reusable function, which increases component splitting and reliability. Here we will see 15 react-use package custom hooks that make our component lightweight.
The useIdle hook tracks if the user on the page is…
Optimize your React App during the development stage using these packages and avoid issues during production.
We keep on building apps without considering side effects due to time constraints and other factors. But sometimes, an app will cause major issues in live scenarios. Then we might need to update our app, and sometimes we might need to reconstruct some modules or make some architectural level changes to solve the issue.
Instead of handling such cases in production, we can avoid giving rise to such issues during development itself. So I have listed some packages that will help you find such…
A Quick overview of React 18 Alpha features
React 18 Alpha has been released last week with cool new features and a working group to understand the community for gradual adoption of new features.
Let's see what are the new features
Let first see what is batching?
Batching is grouping multiple state update into a single render to optimize the performance.
Let see this with a code example
Try the demo in codesandbox
We can see, The handleClick has two setState inside it. But when we click…
Redux auth starter is preconfigured Create React App Template with Zero Configuration by running a single command.
If we need to develop a react app, Most of us start to develop a react app with Create React App (CRA). CRA has many features like instead reload, optimized bundle, ships with single dependency, ESlint, Testing and Easy to maintain. But are these features are enough to build a Scalable SaaS…
Advantages of new React feature: React server components
In this article, we will see some key points of React Server Components.
On December 21 2020, reactjs.org posted a blog on react server component as Introducing Zero-Bundle-Size React Server Components.
React Server Components are an experimental feature and not for production use.
As the main use case of the server component is to move the non-user interactive component from client to server components. And this approach is mainly focussed on
Server Components feature allows writing components as server and client components, React differentiate…
Run a Serverless Laravel application using Bref in AWS Lambda.
In this article, we can see how to run a serverless Laravel application using Bref package and AWS Lambda.
Let’s keep it simple: Serverless is a cloud model where the cloud provider takes care of resource allocation dynamically, so charged for the amount of resource used. Serverless is also referred to as “Functions as a Service” or “FaaS”.
Due to serverless architecture, we only pay…
Securely make JWT-based authentication in a React application
In this article, we will see how to securely store the JWT token in a single-page app for authentication.
Is local storage secure to store a token? Let’s find out. Local storage is accessible from the client-side only, so your API provider will set the JWT in the API response Authorization header as a bearer token in login or Register API if the status is successful. In React, we will get the JWT and store it in the local storage as below: