Dynamically assign properties to TypeScript objects using the `Record` and `Partial` utility types, optional object properties, and more.
Explore best practices for typing `children` props in TypeScript in both functional and class-based components.
Learn how to access previous props and state in React using useRef, useState, usePrevious, and useEffect hooks effectively.
Astro brings simplicity, speed, and a stellar DX. Let’s explore what makes Astro such a compelling framework for your next project.
Astro integrations are key to customizing your site’s behavior. Learn how to insert them in the right areas of the hooks lifecycle here.
Astro was the first major platform to adopt the View Transitions API for desktop apps and websites. Learn how to incorporate it here.
Astro, the popular frontend framework, added middleware in a recent release. Learn how to use Astro’s middleware in this post.
Array.prototype
methods in JavaScriptFour new Array.prototype methods were recently approved as part of ECMAScript 2023. Read about how to use them in this detailed guide.
Compare the useEffect and useLayoutEffect Hooks in React, especially their firing, performance, and visual changes.
useMemo
React HookLearn when not to use the useMemo React Hook, such as when a memoized value is not used frequently or a computation is not expensive.
Editor’s note: This React Hooks tutorial was last updated on 6 March 2023 to include more React Hooks best practices […]
Learn how to initialize state and implement advanced React component patterns using React Hooks like useState and the key property.