Class: Components::Todo

Inherits:
Object show all
Includes:
React::Component
Defined in:
lib/generators/reactive_ruby/test_app/templates/views/components/todo.rb

Instance Attribute Summary

Attributes included from React::Component

#waiting_on_resources

Instance Method Summary collapse

Methods included from React::Component

#_render_wrapper, #component_did_mount, #component_did_update, #component_will_mount, #component_will_receive_props, #component_will_unmount, #component_will_update, #define_state, #deprecated_params_method, deprecation_warning, #emit, included, #initialize, #update_react_js_state, #watch

Instance Method Details

#renderObject



10
11
12
# File 'lib/generators/reactive_ruby/test_app/templates/views/components/todo.rb', line 10

def render
  li { "#{params[:todo]}" }
end