Class: React::ShallowWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/opal/react/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(native) ⇒ ShallowWrapper

Returns a new instance of ShallowWrapper.



5
6
7
# File 'lib/opal/react/component.rb', line 5

def initialize(native)
  @native = native
end

Instance Method Details

#[](key) ⇒ Object



9
10
11
# File 'lib/opal/react/component.rb', line 9

def [](key)
  `return #{@native}[key];`
end