react if the direct mass participation in the Click event will not be triggered when the trigger click, but directly called when rendering
1, the direct mass participation
As follows
After testing found that the event will be triggered directly at initialization, when triggered instead of clicking. Program to solve the problem: arrows + indirect function call
2, arrows indirect call function +
At this point that is triggered when you click on the function call
3 Summary