You are here |
tkdodo.eu | ||
| | | |
www.rasikjain.com
|
|
| | | | Introduction: React, being a popular JavaScript library for building user interfaces, provides various tools and features to handle state management. One such feature is useContext, which allows developers to share state across different components without prop drilling. In this blog post, we will explore the useContext feature in React and demonstrate its usage with a TypeScript example. Understanding useContext: The useContext hook is part of the React library and allows components to consume values fr... | |
| | | |
maxrozen.com
|
|
| | | | If you're confused about side-effects and pure functions, it can be hard to understand useEffect. Let's learn them both, to fetch data with useEffect. | |
| | | |
www.rasikjain.com
|
|
| | | | Introduction: As a React developer, you?re likely familiar with the useEffect hook. It?s a powerful tool that allows you to manage side effects in functional components. While its primary role is to handle tasks like data fetching, DOM manipulation, and subscriptions, useEffect can also be a game-changer when it comes to optimizing your application?s performance. In this blog post, we?ll explore some of the best use cases of useEffect in improving performance, complete with sample code to help you get st... | |
| | | |
bryanlrobinson.com
|
|
| | In these two videos, we take 110 seconds each to discuss how to use 11ty's Global Data files to pull static data with JSON and dynamic (at build time) data with JavaScript. |