Skip to content

Commit

Permalink
Removing name prefix rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Gensler committed Dec 23, 2015
1 parent 545656a commit 1f65662
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,51 +323,6 @@
}
```
- Prefix the name of event handlers with `on`.
```javascript
// bad
class extends React.Component {
handleClickDiv() {
// do stuff
}
// other stuff
}
// good
class extends React.Component {
onClickDiv() {
// do stuff
}
// other stuff
}
```
- Prefix the name of additional render methods with `render`.
```javascript
// bad
class extends React.Component {
createNavigation() {
// render stuff
}
render() {
{this.createNavigation()}
}
}
// good
class extends React.Component {
renderNavigation() {
// render stuff
}
render() {
{this.renderNavigation()}
}
}
```
## Ordering
- Ordering for `class extends React.Component`:
Expand Down

0 comments on commit 1f65662

Please sign in to comment.