How to optimize React applications that use Redux
I never understood why Redux became so popular.<p>It basically tries to enforces a few old ideas, pure functions, message passing and immutability, with no help from the language, which results in verbose and ugly code.<p>`a.b = c` becomes `Object.assign({}, a, { b = c })`<p>and<p>`object.method(data)` becomes `store.dispatch({type: METHOD, data})` with the implementation code of the &quot;object&quot; being a huge &quot;switch&quot; statement.<p>If you want immutability, pure functions and message passing, then why not use a language that is build around them and make your life easier? Clojurescript maybe?<p>Also having a single store for all your data, definitely doesn&#x27;t help with speed as a single event suddenly becomes an O(LogN) operation in the best case.