Re:Dependency management fatigue, or why I forever ditched R...
by dmkolobov on Tuesday December 03, 2024 @12:45PM
(#42308886)
I’d say all of those bullets fall under the umbrella of “rendering” in an asynchronous execution environment like browsers, where code often depends on a consistent and predictable view of the DOM.
I’m willing to hear arguments about the merits of how React approaches these issues, but I would want any frontend UI library for generating and updating DOM trees to address them in some way.
Re:Dependency management fatigue, or why I forever ditched R...
by Izkata on Tuesday December 03, 2024 @01:25PM
(#42309433)
State management is typically handled by other libraries. React can do it, but it's not great for a full app. Maybe "data flow" too, not really sure what makes that different from "state management".
Re:Dependency management fatigue, or why I forever ditched R...
by darepublic on Tuesday December 03, 2024 @01:53PM
(#42309777)
Lodash does a hundred different things and then people start using it in place of super simple code or native capabilities ballooning the third party API you need to learn
Re:Dependency management fatigue, or why I forever ditched R...
by ambicapter on Tuesday December 03, 2024 @01:01PM
(#42309080)
lodash is a utility library (so chock-full of functionality) how can you say it "does one thing well"?
Re:Dependency management fatigue, or why I forever ditched R...
by grodriguez100 on Tuesday December 03, 2024 @05:30PM
(#42312322)
He actually says it is a counter-example of “does one thing well”.
Re:Dependency management fatigue, or why I forever ditched R...
by ambicapter on Friday December 06, 2024 @08:18PM
(#42346377)
Oops, misread that.
Re:Dependency management fatigue, or why I forever ditched R...
by qudat on Tuesday December 03, 2024 @06:26PM
(#42312849)
Disagree. State management is an anti feature in react and you don’t need JSX to use react.
It’s only true feature is the view = func(state), everything else should be outsourced to something else.
Re:Dependency management fatigue, or why I forever ditched R...
by molszanski on Tuesday December 03, 2024 @09:23PM
(#42313937)
Yup. Don't use react for state or some hook spaghetti like react query. Use mobx and live happily ever after :)
Re:Dependency management fatigue, or why I forever ditched R...
by qudat on Tuesday December 03, 2024 @09:34PM
(#42313986)
Exactly. Although I would go with starfx instead
Re:Dependency management fatigue, or why I forever ditched R...
by molszanski on Tuesday December 03, 2024 @09:45PM
(#42314036)
Didn't know about starfx. Interesting.
To anyone reading, mobx is a more generic tool for any type of state management.
And starfx seems like a data fetching + holding state and providing hooks for that data kind of library. Very unique and looks someone cared to make something nice for that kind of problem
Re:Dependency management fatigue, or why I forever ditched R...
by neoconomist on Wednesday December 04, 2024 @02:35AM
(#42315269)
starfx looks interesting and innovative ! thanks for sharing
- UI rendering
- State management
- Component lifecycle
- Event handling
- Data flow
- JSX templating
In that sense React truly is a comprehensive UI framework, not a single-purpose library. Counter-examples of "do one thing well" are Lodash and Axios.