Sha256: ec0840341c393fac10a78d21e3f0c246c4be84900d678f931410a0f9cd614e60

Contents?: true

Size: 541 Bytes

Versions: 5

Compression:

Stored size: 541 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

5 entries across 5 versions & 1 rubygems

Version Path
isomorfeus-react-16.13.11 lib/isomorfeus_react/react/function_component/mixin.rb
isomorfeus-react-16.13.10 lib/isomorfeus_react/react/function_component/mixin.rb
isomorfeus-react-16.13.9 lib/isomorfeus_react/react/function_component/mixin.rb
isomorfeus-react-16.13.8 lib/isomorfeus_react/react/function_component/mixin.rb
isomorfeus-react-16.13.7 lib/isomorfeus_react/react/function_component/mixin.rb