r/reactjs • u/acemarke • Feb 02 '18
Beginner's Thread / Easy Questions (February 2018)
We had some good comments and discussion in last month's thread. If you didn't get a response there, please ask again here!
Soo... Got questions about React or anything else in its ecosystem? Stuck making progress on your app? Ask away! We’re a friendly bunch. No question is too simple.
The Reactiflux chat channels on Discord are another great place to ask for help as well.
22
Upvotes
View all comments
1
u/Arnold-Skyrimmer Feb 02 '18
Couple of questions about syntax:
If I'm defining a method in a component, is it better use an arrow function or
function foo().... and use
this.foo = this.foo.bind(this); ?
Hope that makes sense!