With the release of version 19.2, a new hook named `useEffectEvent` was introduced in React. As the name suggests, it is for the "events" defined inside `useEffect`. But what exactly is an "Event" and how does it affect the "Effect"? That's what I intend to discuss here in this post. [...]
Deciding which tools to use while building a React web application is subjective, but in this post, I will propose a minimum set of tools needed to build a simple React application. This post will help you to build and get the React application up and running in just a few minutes. [...]
In this guide, I am sharing five of the best places to learn React. Doesn't matter if you are a newbie in React or advancing your journey as a React developer, these resources will help you at every step of your React journey. I wish I came across these resources while I was new to React. [...]
Create React App a.k.a CRA is a tool (setup tool I would say) which provides an opinionated architecture combining a set of tools required to configure, transpile JSX and bundle React. Now that it's deprecated, here's a list of alternatives you can choose from: Vite, Nextjs, Tanstack, Expo (for native React apps). [...]
Astro, which is a meta-framework and uses Vite, can be integrated with the React compiler to improve the performance of your React application — and that's exactly what I will be showing you how to. React compiler is now stable and compatible with versions of React 17+ with the help of react-compiler-runtime. [...]
Forms in React have always been not so easy to handle which often leads to messy React code. Ultimately, folks have to resort to form handling libraries which only add more abstraction in the process. [...]
You can specify the background color of body in a global stylesheet, but it's not easy to update the background color dynamically for different pages in your website. So, I went on to code a hacky but working patch using CSS custom properties. [...]