From 8349ea4b0e905a2ad97e4f79a630d49114af4ef3 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 1 Nov 2016 10:58:56 +0000 Subject: [PATCH] fix code style for ES6 classes --- code_style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_style.md b/code_style.md index cd4eabefb6..a96e0e56d6 100644 --- a/code_style.md +++ b/code_style.md @@ -149,7 +149,7 @@ ECMAScript React ----- -- Use ES6 classes, although bear in mind a lot of code uses createClass. +- Use React.createClass rather than ES6 classes for components, as the boilerplate is way too heavy on ES6 currently. ES7 might improve it. - Pull out functions in props to the class, generally as specific event handlers: ```jsx