Module: LucidComponent::Initializer

Defined in:
lib/isomorfeus_react/lucid_component/initializer.rb

Instance Method Summary collapse

Instance Method Details

#initialize(native_component) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/isomorfeus_react/lucid_component/initializer.rb', line 3

def initialize(native_component)
  @native = native_component
  @app_store = LucidComponent::AppStoreProxy.new(self)
  @class_store = LucidComponent::ClassStoreProxy.new(self.class.to_s, self, @native)
  # @iso_store = Isomorfeus::IsomorphicStoreProxy.new(self)
  # @local_store = Isomorfeus::LocalStoreProxy.new(self)
  @store = LucidComponent::InstanceStoreProxy.new(self)
  @props = `Opal.React.Component.Props.$new(#@native)`
  @state = `Opal.React.Component.State.$new(#@native)`
end