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.
1 parent 5818176 commit 4375558Copy full SHA for 4375558
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