The error picture should be like this.
Component passing is different from general function passing parameters. We need to add the name of each parameter declaration in parentheses where it is called.
For example:
When declaring:
When calling:
The error picture should be like this.
Component passing is different from general function passing parameters. We need to add the name of each parameter declaration in parentheses where it is called.
For example:
When declaring:
When calling: