Skip to content

Commit 3926e0b

Browse files
author
Robert Mosolgo
committed
Merge pull request #262 from DanielMSchmidt/fixed-generator-bug
Fixed bug with generating unusable components
2 parents 5818176 + 4375558 commit 3926e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/templates/component.js.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var <%= file_name.camelize %> = React.createClass({
1212
return (
1313
<div>
1414
<% attributes.each do |attribute| -%>
15-
<div><%= attribute[:name].titleize %>: {this.props.<%= attribute[:name] %>}</div>
15+
<div><%= attribute[:name].titleize %>: {this.props.<%= attribute[:name].camelize(:lower) %>}</div>
1616
<% end -%>
1717
</div>
1818
);

0 commit comments

Comments
 (0)