What if you want to mutate the state? In multiple ways? Pass multiple callbacks down?
-
-
-
Or useReducer and pass dispatch.

- Još 1 odgovor
Novi razgovor -
-
-
What's your preferred method for lifting state to the parent? I don't do it often, and the approaches I've tried have felt crufty.
-
Cut and paste into relevant parent, then pass down to kids via props.
Perhaps I’m misunderstanding ya? - Još 3 druga odgovora
Novi razgovor -
-
-
This has typically been a pretty hard sell, in a world where the existence of Redux or global state was the default. I still fully support colocated state first.
-
I feel like we all collectively shot our selves in the foot with redux. The "global state" problem redux solves does not exist.
- Još 4 druga odgovora
Novi razgovor -
-
-
Why? "Strive to keep state as low as possible."
-
It helps you avoid unnecessary re-renders and prop drilling. That way you gain performance boost and also have states that are easy to reason about.
- Još 1 odgovor
Novi razgovor -
-
-
-
Ironically my biggest problem with
@elm is the massive complexity related to state management.
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.