Hacker Talks
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
BlackEco@lemmy.blackeco.com to React@programming.devEnglish · 1 month ago

use(): The Hook That Breaks the Rules (On Purpose)

saschb2b.com

external-link
message-square
0
link
fedilink
3
external-link

use(): The Hook That Breaks the Rules (On Purpose)

saschb2b.com

BlackEco@lemmy.blackeco.com to React@programming.devEnglish · 1 month ago
message-square
0
link
fedilink
React's use() hook reads promises and context at render time, integrates with Suspense, and eliminates the most common useEffect anti-pattern. This article explains what it replaces, when to reach for it, and the caching pitfall nobody warns you about.
alert-triangle
You must log in or # to comment.

React@programming.dev

react@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

A community for discussing anything related to the React UI framework and it’s ecosystem.

https://react.dev/

Wormhole

[email protected]

Icon base by Skoll under CC BY 3.0 with modifications to add a gradient

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 20 users / month
  • 84 users / 6 months
  • 1 local subscriber
  • 1.33K subscribers
  • 89 Posts
  • 29 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • CUFTA22@programming.dev
  • Berserker@programming.dev
  • UI: unknown version
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org