Tag: react
All the articles with the tag "react".
Replacing Legacy throw in React 19 with Suspense and use
Published: at 11:57 PM•reactreact19React once used thrown Promises for Suspense. .use() is recommended now, but legacy throwing is still supported.
Read moreMastering useState in React to Handle Multiple Values
Published: at 11:13 PM•reactnextjs+1In 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.
Read moreUnderstanding Environment Variable Pitfalls in Next.js
Published: at 09:28 PM•nextjsreactNext.js handles env vars at build time, causing issues like static values in runtime logic, necessitating careful planning and execution.
Read moreEnhancing React's Drag-and-Drop with State Management: A Deep Dive
Published: at 09:19 PM•nextjsreact+1Explore advanced React state management in drag-and-drop interfaces, leveraging `useRef` and state setters for responsive, interactive web applications.
Read moreBuilding a Drag-and-Drop Interface in React: Beyond Basic React
Published: at 02:56 PM•nextjsreact+1Explore drag-and-drop in React, leveraging `useRef` for direct DOM interactions and efficient state management in interactive applications.
Read more