Module: LucidFunc::Initializer

Defined in:
lib/isomorfeus_preact/lucid_func/initializer.rb

Instance Method Summary collapse

Instance Method Details

#initializeObject



2
3
4
5
6
7
# File 'lib/isomorfeus_preact/lucid_func/initializer.rb', line 2

def initialize
  self.JS[:native_props] = `{ props: null }`
  @native_props = `Opal.Preact.Props.$new(#{self})`
  @app_store = LucidComponent::AppStoreProxy.new(self)
  @class_store = LucidComponent::ClassStoreProxy.new(self.class.to_s, self)
end