🚨 NEWS: Context API vs Zustand vs Redux: come scegliere la gestione dello stato globale in React

Ecco i punti chiave in breve:
💡 Hai un'app React che cresce. I prop-drilling iniziano a farti impazzire. I componenti condividono dati che dovrebbero essere globali: carrello, utente loggato, preferenze tema. E ora arriva la domanda...

🚀 LINK: https://meteoraweb.com/sviluppo-di-siti-web/context-api-vs-zustand-vs-redux-come-scegliere-la-gestione-dello-stato-globale-in-react

#performance #react #contextAPI #zustand #redux

I'm playing with Mastodon's Context API to fetch replies to posts I'm viewing, and while it's too early for me to add this to https://github.com/stefanbohacek/mastodon-tools, the experience is so much better.

Has anyone done anything with this?

#mastodon #MastodonAPI #ContextAPI

GitHub - stefanbohacek/mastodon-tools: Making Mastodon easier to use.

Making Mastodon easier to use. Contribute to stefanbohacek/mastodon-tools development by creating an account on GitHub.

GitHub
Redux VS React Context

So, we all have worked on React or React Native for developing web and mobile applications. There are...

DEV Community

Le livre "Micro Frontends In Action" [1] est merveilleux @david_lacourt

C'est le point; d'avoir chaque verticaux en isolation, et un protocole pour communiquer. Puis, bien, le nouveau #ContextAPI du #WebComponents Community Group [2,3], il est possible de réellement aller de façon découplée.

(les #DOM Event, c'est très puissant!)

1: https://micro-frontends.org/
2: https://github.com/webcomponents-cg/community-protocols/blob/47f55ffa/proposals/context.md
3: https://github.com/lit/lit/tree/%40lit-labs/context%400.2.0/packages/labs/context

Micro Frontends

Techniques, strategies and recipes for building a modern web app with multiple teams using different JavaScript frameworks.

neuland - Büro für Informatik
Creating Context in ReactJS Using TypeScript | HackerNoon

A react context is meant to be used in more than one component or custom hook. Enforce typings in your context to ensure a better quality code