Ceil-Ian MaralitFront End Web Development Techdegree Graduate 19,421 Points
What is wrong with my code?
Hi! Good day. I followed what Guil said in this video but I'm getting an error. I would appreciate a fresh eyes looking at my code. Maybe you will see what's the problem. Thank you in advance!
Henry Lay14,739 Points
I can't seem to get into the workspace to provide my input onto the problem if possible are you able to take a screenshot of the question or syntax if possible?
Gabbie Metheny33,700 Points
In the event handler inside your
Player component, you're trying to call
this.removePlayer, but it actually needs to be
props.removePlayer, since the
App component passed the function down through props. If you're still getting an error after that change, let me know what the error is and I'd be happy to take another look!
stjarnanFront End Web Development Techdegree Graduate 56,487 Points
Hi Ceil-Ian Maralit,
I noticed you tagged me and took a quick look, I believe the answer Gabbie Metheny came up with just as you tagged me might solve your problem. (I can see that you tagged me 20 seconds before her reply came in! :D )
Let us know how it works!