How can authentication tokens be stored on a device in a React Native app, and what are some examples of storage options?May 7, 2023·2 min read
What is the client library?Client libraries, also known as client SDKs (Software Development Kits), are collections of pre-written code and APIs (Application Programming Interfaces) designed to simplify the process of interacting with a particular service or platform from the ...Feb 12, 2024·1 min read
What is the virtual DOM in React?Dom manipulation is the heart of the modern, interactive web. Unfortunately, it is also a lot slower than most JavaScript operations. This slowness is made worse by the fact that most JavaScript frameworks update the DOM much more than they have to. ...Mar 24, 2023·2 min read
Handle image preview in React// BLOB stands for a “Binary Large Object,” a data type that stores binary // data. Binary Large Objects (BLOBs) can be complex files like images or .. import React, { useRef, useState, useEffect } from "react"; import Button from "./Button"; imp...Feb 2, 2023·2 min read
Difference between throwing an Error or returning next(error) ?In an async task (e.g. in a promise), you need to use next(error) - throw error will NOT cause the error handling middleware to become active.Jan 28, 2023·1 min read
An Alternative to Google's Geocoding API that doesn't use a credit cardFor those who are curious about using an alternative API to Google's Geocoding, check out LocationIQ: https://locationiq.com/. I found the documentation to be very simple if you follow the instructions. Here is a sample of my location.js code below: ...Jan 27, 2023·2 min read
Best Tool to make input validation simple and clean (Express.js)express-validator According to the official website, Express Validator is a set of Express. js middleware its's a library that provides validator and sanitizer functions. Simply said, Express Validator is an Express middleware library that you can in...Jan 26, 2023·1 min read
Why do we need to add server-side validation? Didn't we add validation in the front-end section?Hi! It’s a basic principle of web development that we can’t prevent the users from inspecting and modifying the source code of an app. The browser needs HTML, CSS and JS to run the app, and everyone can inspect and modify anything in the browser’s de...Jan 24, 2023·1 min read