Module: LucidComponent::Initializer
- Defined in:
- lib/isomorfeus_preact/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/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) @store = LucidComponent::InstanceStoreProxy.new(self) @props = `Opal.Preact.Props.$new(#@native)` @state = `Opal.Preact.State.$new(#@native)` end |