Posts for Pandu Rijal Pasa

Frontend Engineer | Web & Mobile Developer

Complete React Datepicker Tutorial with Examples

In this tutorial, you will learn how to use React datepicker in your React project. You will learn from a basic example to a specific use case by creating a hotel booking component using React-Datepicker. React-datepicker is a simple and reusable component for React. This component currently has around 314 contributors with more than 600.000 […]

March 1, 2021 in React & Tutorials

How To Use Axios Header On Your Request

In this article, we will learn how to use Axios Header on your request. There is a slight difference in using the Axios Header on GET method compared to others. Let’s say we want to put an Authorization header on our request, we can pass the header object as the second argument of the request. […]

February 21, 2021 in Code examples

How To Use Axios Interceptors

In this article, you will learn how to use Axios Interceptors on your requests and responses. The Axios Interceptors works by intercepts all the requests and responses before they are handled by then() or catch() on the current instance. Let’s say you want to put an authorization token inside request header, you can use this: […]

February 21, 2021 in Code examples

Fix – React native version mismatch

If you get React native version mismatch error, here is how to fix this issue. Basically, this error occurs because your project has a different version from the one you already specified on package.json. This also sometimes happened when you are running multiple projects and the server accidentally installed a different react version. To fix […]

February 21, 2021 in Errors solved

Learn how To Use Axios Create

In this article, you will learn how to use Axios.create() the right way. Before the usage, let’s go for the definition first. The axios.create() is a function that lets you create a new instance of an Axios service. This would be very helpful to create a dedicated instance for the current project instead of using […]

February 20, 2021 in Code examples

Fix – ReactDOM is not defined

If you are getting ReactDom is not defined in React, this article will help you fix the issue. This issue could pop out because: you don’t have module react-dom properly installed inside your project and you tried to call it, or simply you didn’t call this module correctly. To fix that, you will need to […]

February 20, 2021 in Errors solved