Module: React::MemoComponent::Mixin
- Defined in:
- lib/isomorfeus_react/react/memo_component/mixin.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/isomorfeus_react/react/memo_component/mixin.rb', line 4 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::MemoComponent::NativeComponentConstructor) end |