Architecting UIs for Change
joreteg.com
Architecting UIs for Change
1–10 of 29 posts
Re: Architecting UIs for Change
#2Re: Architecting UIs for Change
#3Re: Architecting UIs for Change
#4Re: Architecting UIs for Change
#5TLDR: State is hard, use createSelector from Redux and read my book which explains it in depth.
Edit: if you find it valuable you can also buy a digital copy
Re: Architecting UIs for Change
#6This decoupling of state (and its reducers/actions) from view is a powerful architecutral pattern that I learned from Redux, and I've built every React application (or component) following it. It's separation of concerns at its best, where the heart of the app is about designing data structures and interfaces (as in API), with reusable, composable, and unit-testable states and actions. The UI then becomes just another consumer of the API, so one can develop/rebuild/extend the view as its own separate layer of concern. Looking back, it's hard to believe I was able to keep things organized any other way.
Re: Architecting UIs for Change
#7While I don't use Redux anymore, one point in the article really resonated with me: having a single source of truth for the entire app state enables you to "run an entire functional application without any visual components having been built whatsoever". This decoupling of state (and its reducers/actions) from view is a powerful architecutral pattern that I learned from Redux, and I've built every React application (…
https://drmzn-todo-app.herokuapp.com/
https://github.com/max0xff/drmzn-todo-app
https://github.com/max0xff/drmzn-todo-app/blob/master/About....
I would love to hear your feedback :)
Re: Architecting UIs for Change
#8While I don't use Redux anymore, one point in the article really resonated with me: having a single source of truth for the entire app state enables you to "run an entire functional application without any visual components having been built whatsoever". This decoupling of state (and its reducers/actions) from view is a powerful architecutral pattern that I learned from Redux, and I've built every React application (…
Re: Architecting UIs for Change
#9If the author is reading: have you ever read about Behavioral Programming (BP) principles?
I have written a bit about it here:
- https://lmatteis.github.io/react-behavioral/
- https://medium.freecodecamp.org/an-intro-to-behavioral-progr...
And also have given a talk about how UIs can better align with requirements: https://vimeo.com/298554103
BP is still driven by trying to make change easier to implement in a large codebase, so I think there are some high-level similarities with your approach.
Re: Architecting UIs for Change
#10While I don't use Redux anymore, one point in the article really resonated with me: having a single source of truth for the entire app state enables you to "run an entire functional application without any visual components having been built whatsoever". This decoupling of state (and its reducers/actions) from view is a powerful architecutral pattern that I learned from Redux, and I've built every React application (…
Do you store all UI state in redux as well as all 'resource state'? Phrased as an example... If you store a JSON object that can be edited in your store do you also store a Boolean value for whether the dialog is open that can be used for editing that JSON object?
But your question makes me think, if I store any UI state in the app state, have I really decoupled state and view? I'd say yes - since I'd be able to build and test UI state and actions, independent from the view.