From bf217f4516f3b0100a46e77daf23612a096852e7 Mon Sep 17 00:00:00 2001 From: Kai Wood Date: Thu, 29 Oct 2015 12:57:32 +0100 Subject: [PATCH] Update README to hint for newer syntax Since React 0.12 the ES6 style syntax can be used with CoffeeScript classes as well. The docs should give a hint for this. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 8ba38f2e0..d31aeecd1 100644 --- a/README.md +++ b/README.md @@ -323,6 +323,14 @@ Component = React.createClass `` ``` +Alternatively, the newer ES6 style class based syntax can be used like this: + +```coffee +class Component extends React.Component + render: -> + `` +``` + ## Extending `react-rails` You can extend some of the core functionality of `react-rails` by injecting new implementations during configuration.