Sha256: 0f9bb47e9b8af9058a513981f6ab0664ffefc755f11cb70a7b98b8fca579b48a

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

module React
  module FunctionComponent
    module Mixin
      def self.included(base)
        if on_browser? || on_ssr?
          base.include(::React::Component::Elements)
        elsif on_mobile?
          base.include(::ReactNative::Component::Elements)
        end
        base.include(::React::Component::Features)
        base.include(::React::FunctionComponent::Initializer)
        base.include(::React::FunctionComponent::Api)
        base.extend(::React::FunctionComponent::NativeComponentConstructor)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
isomorfeus-react-16.13.12 lib/isomorfeus_react/react/function_component/mixin.rb