Message from JavaScript discussions
August 2018
— I use vars only. D.Crockford voted for let only.
Always use const except when you intend to modify a variable later (which should be avoided as much as possible)
even worst browser like IE 11 supports let and const, there is no need to use var.
Another notable difference between var and let, const is:
var when used in global scope adds properties to window object (in browser) whereas let and const dont add to window object
e.g.var a = 1;
will evaluate to
window.a1
where if u use const
or let
to declare a
,
such as const a = 1
window.a
would be undefined
— For most cases, it's better to transpile to support older browsers.
— Thanks all
— Please who has use mobx for state management??
— Dont know about mobx always using redux and context api for state managment
— Please I'm looking for a tutorial on how to do a modal form using react and redux. I've search google all day but no luck
— Take a look at redux-form, pretty awesome for form state management
— I'm only allow to use html and css incorporated into react and redux
— Lol why
— U dont need to use redux-form its just nice for large projects
— That's the instruction that was given..