Tag: react
All the articles with the tag "react".
Replacing Legacy throw in React 19 with Suspense and use
Published: at 11:57 PMReact once used thrown Promises for Suspense. .use() is recommended now, but legacy throwing is still supported.
Mastering useState in React to Handle Multiple Values
Published: at 11:13 PMIn this blog post, we explore using useState with React's Context API to manage an array of constants effectively in Next.js projects, offering a simpler alternative to useReducer for state management.
Understanding Environment Variable Pitfalls in Next.js
Published: at 09:28 PMNext.js handles env vars at build time, causing issues like static values in runtime logic, necessitating careful planning and execution.
Enhancing React's Drag-and-Drop with State Management: A Deep Dive
Published: at 09:19 PMExplore advanced React state management in drag-and-drop interfaces, leveraging `useRef` and state setters for responsive, interactive web applications.
Building a Drag-and-Drop Interface in React: Beyond Basic React
Published: at 02:56 PMExplore drag-and-drop in React, leveraging `useRef` for direct DOM interactions and efficient state management in interactive applications.