React.js Frontend Dev
Level-up your Frontend dev skills
How to Use a Map With React useState() Hook?
Find out how to use theuseState()hook with a JavaScriptMapin React. Learn how to initialize, add/remove items, and renderMapcontents.How to Use a Set With React useState() Hook?
Find out how to use theuseState()hook with a JavaScriptSetin React. Learn how to initialize, add/remove items, renderingSetcontents, and the importance of immutability.How to Fix "Cannot assign to current because it is a read-only property" useRef() TypeScript Error?
Find out why the TypeScript error "Cannot assign to current because it is a read-only property" happens and how to resolve it when using theuseRef()React hook.How to Create Non-Flickering Dark/Light Mode Toggle in Next.js Using localStorage?
Learn how to implement a seamless dark/light mode toggle in your Next.js application without the annoying flicker that often occurs during page load. This comprehensive guide covers step-by-step code to help you get started.How to Create Non-Flickering Dark/Light Mode Toggle in Next.js Using Cookies?
Learn how to implement a seamless dark/light mode toggle in your Next.js application without the annoying flicker that often occurs during page load. This comprehensive guide covers step-by-step code to help you get started.What Are "Reactive Values" in React?
Learn about the concept of "reactive" values in React. Knowing this will help you identify these values and correctly use them as dependencies in hooks such asuseEffect().Are Primitive Values Recreated on Every Re-Render in React Functional Components?
Find out if defining primitive values inside a React functional component can lead to unnecessary recreations on each re-render. Knowing this will help you improve the efficiency of your React applications.Are Arrays Inside React Functional Components Always Recreated on Re-Render?
Find out if defining arrays inside a React functional component can lead to unnecessary array recreations on each re-render. Knowing this will help you improve the efficiency of your React applications.Are Objects Inside React Functional Components Always Recreated on Re-Render?
Find out if defining objects inside a React functional component can lead to unnecessary object recreations on each re-render. Knowing this will help you improve the efficiency of your React applications.How to Fix "Property 'x' does not exist on type 'never'" TypeScript Error When Using React useRef()?
Learn how to resolve the "Property 'value' does not exist on type 'never'" error when using React'suseRef()with TypeScript. Discover the simple fix that ensures your code works seamlessly.How to Fix "Object is possibly 'null'" TypeScript Error When Using useRef React Hook?
When usinguseRef(null)in React, TypeScript might complain about the reference object beingnull. In this post we will explain to you why this happens and how you can fix this error.Are Functions Inside React Functional Components Always Recreated on Re-Render?
Find out if defining functions inside a React functional component can lead to unnecessary function recreations on each re-render. Knowing this will help you improve the efficiency of your React applications.