Module: Proscenium::ReactComponentable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Phlex::ReactComponent, ViewComponent::ReactComponent
- Defined in:
- lib/proscenium/react_componentable.rb
Instance Method Summary collapse
- #initialize(lazy: self.class.lazy, loader: self.class.loader, props: {}) ⇒ Object
- #props ⇒ Object
-
#virtual_path ⇒ Object
The absolute URL path to the javascript component.
Instance Method Details
#initialize(lazy: self.class.lazy, loader: self.class.loader, props: {}) ⇒ Object
54 55 56 57 58 |
# File 'lib/proscenium/react_componentable.rb', line 54 def initialize(lazy: self.class.lazy, loader: self.class.loader, props: {}) self.lazy = lazy self.loader = loader @props = props end |
#props ⇒ Object
65 66 67 |
# File 'lib/proscenium/react_componentable.rb', line 65 def props @props ||= {} end |