From 7d763fc6e10ba400e831ec31a6e7c18c287649f9 Mon Sep 17 00:00:00 2001 From: Cyril ViXP Date: Tue, 3 Oct 2017 12:00:05 +0300 Subject: [PATCH] CoffeeScript React component generator fix (class with @ didn't work with export in footer, there is no need to set classes in global scope if they will be exported anyway) --- lib/generators/templates/component.js.jsx.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/templates/component.js.jsx.coffee b/lib/generators/templates/component.js.jsx.coffee index 82472f42f..82575261e 100644 --- a/lib/generators/templates/component.js.jsx.coffee +++ b/lib/generators/templates/component.js.jsx.coffee @@ -1,4 +1,4 @@ -<%= file_header %>class @<%= component_name %> extends React.Component +<%= file_header %>class <%= component_name %> extends React.Component <% if attributes.size > 0 -%> @propTypes = <% attributes.each do |attribute| -%>