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, #children, #component?, #component_did_mount, #component_did_update, #component_will_mount, #component_will_receive_props, #component_will_unmount, #component_will_update, #define_state, #deprecated_params_method, #emit, included, #initialize, #method_missing, #p, #params, #props, #props_changed?, #refs, #should_component_update?, #state, #update_react_js_state, #watch

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class React::Component

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