r/reactjs • u/acemarke • Apr 03 '18
Beginner's Thread / Easy Questions (April 2018)
Pretty happy to see these threads getting a lot of comments - we had almost 200 comments 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.
17
Upvotes
View all comments
Show parent comment
2
u/pgrizzay Apr 10 '18
Yes, it will need to be manually invoked inside the
AddListcomponent.when you type:
You're not actually invoking that function, you're creating a new function, whose
thisparameter will be the samethisas the parent component.Since you're just creating a new function,
AddListwill still have to invoke that function in order for it to have any effect.