Sha256: a9676c75d2a2e99ccea9856ab545ec465db482e43b80f0076d4f7fc39db31450
Contents?: true
Size: 522 Bytes
Versions: 5
Compression:
Stored size: 522 Bytes
Contents
<%= file_header %>class <%= component_name %> extends React.Component <% if attributes.size > 0 -%> @propTypes = <% attributes.each do |attribute| -%> <%= attribute[:name].camelize(:lower) %>: <%= attribute[:type] %> <% end -%> <% end -%> render: -> <% if attributes.size > 0 -%> `<div> <% attributes.each do |attribute| -%> <div><%= attribute[:name].titleize %>: {this.props.<%= attribute[:name].camelize(:lower) %>}</div> <% end -%> </div>` <% else -%> `<div />` <% end -%> <%= file_footer %>
Version data entries
5 entries across 5 versions & 1 rubygems