Module: LucidComponent::Initializer
- Defined in:
- lib/lucid_component/initializer.rb
Instance Method Summary collapse
Instance Method Details
#initialize(native_component) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/lucid_component/initializer.rb', line 3 def initialize(native_component) @native = native_component @app_store = `Opal.LucidComponent.AppStoreProxy.$new(#{self})` @class_store = `Opal.LucidComponent.ClassStoreProxy.$new(#{self})` @props = `Opal.React.Component.Props.$new(#@native)` @state = `Opal.React.Component.State.$new(#@native)` @store = `Opal.LucidComponent.InstanceStoreProxy.$new(#{self})` end |