4 ms·
This. If your component hierarchy matches your application state hierarchy, don't use flux. If you need to pass pieces of state around to a bunch of different
by mparr4 10y ago
This.
If your component hierarchy matches your application state hierarchy, don't use flux. If you need to pass pieces of state around to a bunch of different components (like sharing state across views), use flux.
My first react application was complicated enough (enterprise analytics application) to require a flux implementation. I went redux and would highly recommend it both due to its ease-of-use and popularity. However, in subsequent applications I haven't needed it and have enjoyed writing vanilla react.