Chafik Gharbi

Chafik Gharbi Full-stack web and mobile app developer with JavaScript.

Undefined is not a function error in JavaScript

January 15, 2023

Learn how to fix the common undefined is not a function error in JavaScript. Discover the most common causes of this error and find solutions with code examples to help you troubleshoot and debug your code.

Using ChatGPT OpenAI API in a Node.js App

January 14, 2023

Learn how to use the ChatGPT OpenAI API in a Javascript Node.js application. This guide covers setting up a project, installing dependencies, authenticating with the API, sending requests, and handling responses to generate human-like text for chatbots and other natural language processing applications.

Improving the Performance of Your React Application with Hooks

January 13, 2023

Optimize the performance of your React application with hooks - Learn how to use React hooks such as useEffect, useMemo, useCallback, useReducer, and React.lazy to control re-renders, memoize calculations, handle state updates, and split code. Improve the speed and user experience of your React application.

10 JavaScript coding challenges

January 12, 2023

This article provides a list of coding challenges, with solutions and explanations, to help prepare for a JavaScript interview.

Edit Android Manifest in Expo managed

December 09, 2021

If you enjoy building mobile apps with Expo like I do, you've probably encountered some limitations such as applying native configurations in the managed workflow

Force a React Component to Re-Render

May 11, 2021

React components automatically re-render whenever there is a change in their state or props. In some cases, you may want to re-render a component without changing its data

What is Vue.js nextTick

January 13, 2021

The DOM in Vue JS is updated asynchronously. When you change a value, the change is not immediately rendered in the DOM...

How to run background tasks in Expo React Native

June 12, 2020

Expo is a great tool for developing mobile applications with React Native, especially for beginners, but this power has consequences and limits. some features cannot be implemented without detaching from Expo.

How To Use Tailwind CSS with Next.js

April 16, 2020

I often use Tailwind CSS in my projects, due to its flexibility and customizability. If you want to get up quickly with any new front-end project, Tailwind should be your choice.

Image Crop and Upload with Laravel & Vue.js

September 10, 2019

Recently, I worked on a project based on Laravel and Vue.js where I had to set up a manual imagecropping tool with server upload. I then decided to share it in this tutorial.