We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5818176 + 4375558 commit 3926e0bCopy full SHA for 3926e0b
lib/generators/templates/component.js.jsx
@@ -12,7 +12,7 @@ var <%= file_name.camelize %> = React.createClass({
12
return (
13
<div>
14
<% attributes.each do |attribute| -%>
15
- <div><%= attribute[:name].titleize %>: {this.props.<%= attribute[:name] %>}</div>
+ <div><%= attribute[:name].titleize %>: {this.props.<%= attribute[:name].camelize(:lower) %>}</div>
16
<% end -%>
17
</div>
18
);
0 commit comments