Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 312294b

Browse files
committed
use hash instead
1 parent b3840c4 commit 312294b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/react/component.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ def initialize(native_element)
2525
end
2626

2727
def params
28-
Native(`#{@native}.props`)
28+
Hash.new(`#{@native}.props`)
2929
end
3030

3131
def refs
32-
Native(`#{@native}.refs`)
32+
Hash.new(`#{@native}.refs`)
3333
end
3434

3535
def state
3636
raise "No native ReactComponent associated" unless @native
37-
Native(`#{@native}.state`)
37+
Hash.new(`#{@native}.state`)
3838
end
3939

4040
def emit(event_name, *args)

0 commit comments

Comments
 (0)