I'm briskly walking through
these react/flux/redux tutorials for a JS evaluation at the day job and possibly to help out at the startup.
Seems like you better already be a JS expert to pick up react - with inheritance all over the place, stuff like this.someFunction.bind(this) all over the place, immutability with redux state, a bunch of other pretty high-level JS concepts. Angular has a learning curve too - but I don't remember it needing this level of deep JS understanding.
Our offshore devs would get into such a mess with bind(this) and immutability. I would send out emails and git comments to the tune of "Did you remember to .bind(this)?" all day long.
Also because I am old and it's late and my brain is slow. This:
Code:
const logger = (store) => (next) => (action) => {
console.log("Logged", action);
return next(action);
};
Is the same thing as this:
Code:
const logger = function(store) {
return function(next) {
return function(action) {
console.log("Logged", action);
return next(action);
};
};
};
Right?
He calls the code in the first example a "series of thunks" which makes me make sad bear face. Also notice 2-space tabs like all sane people.
I do have to say redux middleware is pretty cool.
Last edited by suzzer99; 08-16-2016 at 02:14 AM.