module React::Component::Mixin

Public Class Methods

included(base) click to toggle source
# File lib/react/component/mixin.rb, line 4
def self.included(base)
  base.include(::Native::Wrapper)
  base.extend(::React::Component::NativeComponentConstructor)
  base.extend(::LucidPropDeclaration::Mixin)
  if on_browser? || on_ssr?
    base.include(::React::Component::Elements)
  elsif on_mobile?
    base.include(::ReactNative::Component::Elements)
  end
  base.include(::React::Component::Api)
  base.include(::React::Component::Callbacks)
  base.include(::React::Component::Initializer)
  base.include(::React::Component::Features)
end