Module: React::Component::Initializer

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

Instance Method Summary collapse

Instance Method Details

#initialize(native_component) ⇒ Object



4
5
6
7
8
# File 'lib/react/component/initializer.rb', line 4

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