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, #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



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