Slide 6
Slide 6 text
On a quest to improve app architecture
● Make components based on features, not based on UI semantics
Natural consequence of trying to minimize passing around of props / state
Good testing involves testing the (input/output of) components, not how they are
implemented. Implementation might change, but it’s the functionality which is
important. — Jest. Now think of UI as the visual implementation of functionality.
● Do we need to use Redux?
○ External state management (Flux or not) is great for decoupling actions from the
components. We don’t need this in our app.
○ Truly necessary only when one needs the actions (state changes) themselves
(whether for bug reports, persistent storage or syncing UI across network).