News for hackers. Stuff that matters.
Re:How to optimize React applications that use Redux by acemarke on Wednesday July 05, 2017 @06:10PM (#14706509)
Pretty good summary of the main points for good React-Redux performance. I will say that I'm not a fan of writing `mapState` functions inline in `connect`, as it makes it harder to read them (especially with that parameter destructuring in those examples). But, good post. I frequently see people ask what's wrong with just connecting the top-most component, and you've captured the main reasons why that's bad for perf. And yes, you absolutely should use memoized selectors in your `mapState` functions.

If anyone's interested, I discussed related aspects of good Redux performance in my blog post "Practical Redux, Part 6: Connected Lists, Forms, and Performance" [0], and have a lot of other articles on both React and Redux performance topics in my links list at [1]. Also, my post "Practical Redux, Part 7: Form Change Handling" [2] specifically shows off a React component I built to buffer change events from text inputs to help improve UI performance.

[0] http://blog.isquaredsoftware.com/2017/01/practical-redux-par...

[1] https://github.com/markerikson/react-redux-links/blob/master...

[2] http://blog.isquaredsoftware.com/2017/01/practical-redux-par...

Re:How to optimize React applications that use Redux by motet_a on Wednesday July 05, 2017 @07:49PM (#14707136)
Note that the title is confusing since the article is more related to react-redux than Redux itself.

Redux is too simple to suffer from performance problems.