From e5873366dff70a8c26e0515b7925f2e8d2813991 Mon Sep 17 00:00:00 2001 From: Jordan Gensler Date: Wed, 23 Dec 2015 12:16:15 -0800 Subject: [PATCH] Removing name prefix rules. --- react/README.md | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/react/README.md b/react/README.md index 2616738588..21220d56c1 100644 --- a/react/README.md +++ b/react/README.md @@ -310,51 +310,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: