We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a0e31 commit dce5920Copy full SHA for dce5920
ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb
@@ -19,13 +19,7 @@ class ReactWrapper
19
@@component_classes = {}
20
21
def self.stateless?(ncc)
22
- %x{
23
- typeof #{ncc} === 'function' // can be various things
24
- && !(
25
- #{ncc}.prototype // native arrows don't have prototypes
26
- && #{ncc}.prototype.isReactComponent // special property
27
- )
28
- }
+ `typeof #{ncc} === 'function' && !(#{ncc}.prototype && #{ncc}.prototype.isReactComponent)`
29
end
30
31
def self.import_native_component(opal_class, native_class)
0 commit comments