Module: Preact::Component::Initializer

Defined in:
lib/preact/component/initializer.rb

Instance Method Summary collapse

Instance Method Details

#initialize(native_component) ⇒ Object



2
3
4
5
6
# File 'lib/preact/component/initializer.rb', line 2

def initialize(native_component)
  @native = native_component
  @props = `Opal.Preact.Props.$new(#@native)`
  @state = `Opal.Preact.State.$new(#@native)`
end