import React, { Component } from react class MyComponent extends Component { render = () => { return (

{ @metacodes.each do |metacode| } { if metacode.color } { else } { end } { end }
Name Icon Color
{ metacode.name } { metacode.icon } { metacode.color } { image_tag metacode.icon, width: 40 } { link_to 'Edit', edit_metacode_path(metacode) }
) } } export default MyComponent