Skip to content

Commit 7d763fc

Browse files
committed
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)
1 parent 3657729 commit 7d763fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/templates/component.js.jsx.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%= file_header %>class @<%= component_name %> extends React.Component
1+
<%= file_header %>class <%= component_name %> extends React.Component
22
<% if attributes.size > 0 -%>
33
@propTypes =
44
<% attributes.each do |attribute| -%>

0 commit comments

Comments
 (0)