Sha256: 69124cac5f0ec47ca6eabbaa8f6317c904437099bbd91669071096ca6186ca75
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
module React module Rails module ViewHelper # This class will be used for inserting tags into HTML. # It should implement: # - #setup(controller_instance) # - #teardown(controller_instance) # - #react_component(name, props, options &block) # The default is {React::Rails::ComponentMount} mattr_accessor :helper_implementation_class def react_component(*args, &block) helper_obj = @__react_component_helper helper_obj.react_component(*args, &block) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
react-rails-1.3.2 | lib/react/rails/view_helper.rb |
react-rails-1.3.1 | lib/react/rails/view_helper.rb |