Class: LiveComponent::React

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
Base
Defined in:
lib/live_component/react.rb

Constant Summary

Constants included from Base

Base::JS_SIDECAR_EXTENSIONS

Instance Method Summary collapse

Methods included from Base

included

Constructor Details

#initialize(component:, **props) ⇒ React

Returns a new instance of React.



7
8
9
10
# File 'lib/live_component/react.rb', line 7

def initialize(component:, **props)
  @component = component
  @props = props
end

Instance Method Details

#__lc_controllerObject



20
21
22
# File 'lib/live_component/react.rb', line 20

def __lc_controller
  "livereact"
end

#__lc_tag_nameObject



16
17
18
# File 'lib/live_component/react.rb', line 16

def __lc_tag_name
  "live-component-react"
end

#callObject



12
13
14
# File 'lib/live_component/react.rb', line 12

def call
  ""
end