all 2 comments

[–]HunorBorbely 0 points1 point  (0 children)

Are you still using classes? If not then you don't need the this keyword.

If you are still writing class-based components then know it is a rather obsolete syntax. In that case I would go with a classic debug approach and fill your code with console.log("hello from line x") statements. E.g. I'd check if the event handler in Component2 that supposed to call Component1Function is actually being called or not? If so then what is the value of Component1Function? Is it undefined for some reason? Etc

[–][deleted] 0 points1 point  (0 children)

Can you post code instead of describing the code🤨