lib/react/function_component/creator.rb in isomorfeus-react-16.6.6 vs lib/react/function_component/creator.rb in isomorfeus-react-16.6.7

- old
+ new

@@ -42,10 +42,10 @@ } end def self.memo_component(component_name, &block) %x{ - var fun = React.memo(function(props) { + var fun = Opal.global.React.memo(function(props) { Opal.React.render_buffer.push([]); Opal.React.active_components.push(Opal.React.FunctionComponent.Runner.event_handlers); #{React::FunctionComponent::Runner.new(`props`).instance_exec(&block)}; Opal.React.active_components.pop(); return Opal.React.render_buffer.pop();