Best of React Hooks2023

  1. 1
    Article
    Avatar of communityCommunity Picks·3y

    Why Signals Are Better Than React Hooks

    Discover the benefits of using signals over React hooks, including simplified usage, improved performance, and eliminating complex rules. Signals handle dependencies automatically and can be used anywhere in or outside of a component. Performance metrics have shown significant speed improvements with the use of signals.

  2. 2
    Article
    Avatar of itnextITNEXT·3y

    Build a Full Stack ReminderApp with React, NextJs, Typescript, ServerAction, Zod, Hook-form, Prisma, and Tailwind

    Build a Full Stack ReminderApp with React, NextJs, Typescript, ServerAction, Zod, Hook-form, Prisma, and Tailwind. Hi everyone, I published my last video: Build a full stack Reminder App.

  3. 3
    Article
    Avatar of habrhabr·3y

    React Custom Hook: useArray

    "useArray" hook is one of the many carefully crafted hooks available in the collection of React custom hooks. The useArray hook uses the useState hook from React to manage the array state. The advantages of using this custom hook are twofold: it simplifies the management of array states and provides a cleaner and more readable code structure.

  4. 4
    Article
    Avatar of asayerasayer·3y

    Applying Design Principles in React

    KISS Principle KISS is an acronym for ‘keep it simple, stupid’ This principle was first coined by Clarence Leonard ‘Kelly’ Johnson (1910-1990), an American aeronautical and systems engineer. This article will explain several popular software development principles and how to implement them in your React code base.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    The new wave of React state management

    React applications face challenges in managing shared global state, leading to the development of various state management libraries. These libraries need to address problems such as reading and updating stored state, optimizing runtime performance, and managing memory usage. Different libraries take different approaches to solve these problems. Understanding these problems and the available solutions can help choose the right state management library for specific application needs.

  6. 6
    Article
    Avatar of communityCommunity Picks·3y

    How to Fix Memory Leaks in React

    Learn about the primary causes of memory leaks in React and how to fix them using different methods.

  7. 7
    Article
    Avatar of communityCommunity Picks·3y

    Things you forgot (or never knew) because of React

    React Part 1: An intro about music, defaults, and bubbles. Josh Collinsworth blog post: Things you forgot (or never knew) because of React. Collinsworth: You can keep listening to the same music for the rest of life for life.

  8. 8
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    How to Add Real-time Post Notifications to Your React Applications

    How to add Real-time Post Notifications to your React app, that updates the user when someone likes or comments on your thread? You must know React and Firebase in order to proceed with the things explained below. If you want to build a social media application, simply refer to the videos below.

  9. 9
    Article
    Avatar of communityCommunity Picks·3y

    Make great apps, ultra fast.

    Prismane / Make great apps, ultra fast 107+ react components 484+ Themes out of the box 20+React hooks Unleash the power Explore what we offer Light & Dark variants Tailored for Diverse Color Preferences.

  10. 10
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    TypeScript Handbook for React Developers – How to Build a Type-Safe Todo App

    TypeScript Handbook for React Developers is just for you. You will learn how to handle state and props with strong typing, how to create React components with TypeScript. By the end of this tutorial, you'll have a solid understanding of TypeScript and be ready to develop type-safe React applications with confidence.

  11. 11
    Article
    Avatar of habrhabr·3y

    Supercharge Your Projects with React Custom Hooks

    React Hooks are a feature introduced in React version 16.8 that revolutionized the way developers write and manage stateful logic in functional components. They enable developers to break down complex components into smaller, more manageable pieces, resulting in cleaner and more maintainable code. Hooks allow developers to manage component state and handle side effects effortlessly.

  12. 12
    Article
    Avatar of habrhabr·3y

    React Custom Hook: useScript

    This article explores the useScript custom hook in React, which allows for asynchronous script loading and improves performance and user experience. It provides examples of how the hook can be used in different scenarios.

  13. 13
    Article
    Avatar of habrhabr·3y

    React Custom Hook: useAsync

    The useAsync hook takes in a callback function that performs the asynchronous operation and an optional array of dependencies. It returns an object with three properties: loading, error, and value. The hook employs the useState and useEffect hooks to manage the loading state and invoke the memoized callback function when necessary.

  14. 14
    Article
    Avatar of reactnativeexampleReact Native Example·3y

    Outstanding set of the most powerful React Hooks

    Discover an outstanding set of the most powerful React Hooks that can be used in React Native projects.

  15. 15
    Article
    Avatar of habrhabr·3y

    React Custom Hook: useOnScreen

    The useOnScreen hook leverages the power of the Intersection Observer API. It can be immensely useful in scenarios where you want to trigger animations, lazy load images, or load additional content as the user scrolls. UseOnScreen will notify you when it enters or exits the viewport.

  16. 16
    Article
    Avatar of syncfusionSyncfusion·3y

    Boosting React Performance: useCallback vs. useMemo Hooks

    React 16 promoted the creation of functional components and introduced the following hooks: useEffect for handling the component’s lifecycle. These hooks are necessary because re-renders and re-computations are costly operations. In this blog, we will delve into these hooks, exploring their functionality and examining how they work.

  17. 17
    Article
    Avatar of habrhabr·3y

    React Custom Hook: useDarkMode

    "UseDarkMode" Hook is one of the many carefully crafted hooks available in the collection of React custom hooks. It combines two other handy hooks and, to provide a seamless dark mode experience. It automatically detects the user's preferred color scheme and persists the dark mode state in the browser's local storage.

  18. 18
    Article
    Avatar of habrhabr·3y

    React Custom Hook: usePrevious

    "usePrevious" hook is one of the many carefully crafted hooks available in the collection of React custom hooks. The advantages of using usePrevious are remarkable. By using useRef, this hook efficiently stores the current and previous values, updating them whenever the value changes.

  19. 19
    Article
    Avatar of communityCommunity Picks·3y

    "Mastering Re-rendering in React: A Beginner's Guide"

    A Beginner's Guide to Mastering Re-rendering in React "Navigating the Fundamentals of Reconciliation and Techniques for Optimizing Re-rendereding" The highlight of the topic will be covered in this blog post.

  20. 20
    Article
    Avatar of habrhabr·3y

    React Custom Hook: useStorage

    Discover the potential of React custom hooks with a focus on the 'useStorage' hook. It provides convenient functions for storing and retrieving data in the browser's local or session storage. The hook handles serialization, deserialization, and automatic synchronization with the component's state. The remove function allows for easy deletion of stored values. Use the hook in various scenarios, such as persisting user preferences in a settings panel.

  21. 21
    Article
    Avatar of communityCommunity Picks·3y

    HTMX: The Game-Changing Alternative to React

  22. 22
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    How to Use React Components – Props, Default Props, and PropTypes Explained

    React is an open-source JavaScript library used for building user interfaces (UIs) in web applications. In this tutorial, we'll explore what React components are, how to pass and render data to them using props, and how to enhance their reliability using props and propTypes.

  23. 23
    Article
    Avatar of habrhabr·3y

    React Custom Hook: useClickOutside

    The useClickOutside hook is designed to simplify the process of detecting clicks outside a specified component. It listens for click events on the document level, allowing you to trigger a callback function when a click occurs outside the provided component's reference. It works seamlessly with functional components using the useState and useRef hooks.

  24. 24
    Article
    Avatar of amplicationAmplication·3y

    What's New in Node20 for API Development

    The release of Node.js 20 marked another step in the platform's evolution, introducing a range of features that cater to the needs of modern software development. The advancements in the Web Assembly System Interface (WASI) are noteworthy. The integration of the V8 11.3 JavaScript engine brings several technical improvements.

  25. 25
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Use React Hooks – useEffect, useState, and useContext Code Examples

    React hooks, including useState, useEffect, and useContext, have transformed the way developers write components by providing a more intuitive and flexible approach to managing state and side effects.