Class: Components::HelloWorld

Inherits:
Object
  • Object
show all
Includes:
React::Component
Defined in:
lib/generators/reactive_ruby/test_app/templates/views/components/hello_world.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



5
6
7
8
9
# File 'lib/generators/reactive_ruby/test_app/templates/views/components/hello_world.rb', line 5

def render
  div do
    "Hello, World!".span
  end
end