Class: Mayu::VDOM::SpecialElements::Head

Inherits:
Component::Base show all
Defined in:
lib/mayu/vdom/special_elements.rb

Constant Summary

Constants inherited from Component::Base

Component::Base::INLINE_CSS_ASSETS

Instance Method Summary collapse

Methods inherited from Component::Base

__mayu_resource!, __mayu_resource?, assets, #async, #children, #did_update, get_derived_state_from_props, get_initial_state, #handler, #initialize, initialize, #mayu, #mount, #props, setup_component, #should_update?, #state, styles, #styles, stylesheet, stylesheet!, #unmount, #update, #vnode_id

Constructor Details

This class inherits a constructor from Mayu::Component::Base

Instance Method Details

#renderObject



13
14
15
16
17
18
19
20
# File 'lib/mayu/vdom/special_elements.rb', line 13

def render
  T.unsafe(VDOM::H)[
    :__mayu_head,
    *children,
    VDOM::H[:__mayu_links],
    **props
  ]
end