The best advice you can give a JS and React beginner is to use this syntax for defining EVERY SINGLE component method: `method = () => {}`
-
-
Nobody knows but they are all very excited about them.
-
something like `(props, state, setState) => { /* some jsx or whatever */ }` probably
-
If the correct way to call setState is to take a state, props and return state, wouldn't it be: (p, s, sS) => sS((s) => { ...s, x: y })
-
Haha, yeah, except the setstate would most likely be in a jsx callback too
End of conversation
New conversation -
-
-
You can define it with the keyword "fun"
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
An ember controller?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.