Handler function for onClick prop key must be a camelCase name beginning with 'handle' only
36 <p>First paragraph</p>
37 <p>First paragraph</p>
38 </div>
39 <Button compact onClick={this.toggleShowMoreButton}>{buttonTitle}</Button>40 </div>
41 </div>
42 <Divider />
Description
Ensures that any component or prop methods used to handle events are correctly prefixed.
Bad Practice
<MyComponent handleChange={this.handleChange} />
// Example 2
<MyComponent onChange={this.componentChanged} />
Recommended
<MyComponent onChange={this.handleChange} />
// Example 2
<MyComponent onChange={this.props.onFoo} />