Module: LucidFunc::Initializer

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

Instance Method Summary collapse

Instance Method Details

#initializeObject



3
4
5
6
7
8
9
# File 'lib/isomorfeus_react/lucid_func/initializer.rb', line 3

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