Module: Preact::FunctionComponent::Initializer

Defined in:
lib/isomorfeus_preact/preact/function_component/initializer.rb

Instance Method Summary collapse

Instance Method Details

#initializeObject



2
3
4
5
# File 'lib/isomorfeus_preact/preact/function_component/initializer.rb', line 2

def initialize
  self.JS[:native_props] = `{ props: null }`
  @native_props = `Opal.Preact.Props.$new(self)`
end