module LucidComponent::Initializer

Public Class Methods

new(native_component) click to toggle source
# File lib/isomorfeus_preact/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.Preact.Component.Props.$new(#@native)`
  @state = `Opal.Preact.Component.State.$new(#@native)`
end