Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
  • Loading branch information
ViXP committed Oct 3, 2017
commit 7d763fc6e10ba400e831ec31a6e7c18c287649f9
2 changes: 1 addition & 1 deletion lib/generators/templates/component.js.jsx.coffee
Original file line number Diff line number Diff line change
@@ -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| -%>
Expand Down