Class: Mayu::VDOM::SpecialElements::Body

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



25
26
27
28
29
30
31
32
# File 'lib/mayu/vdom/special_elements.rb', line 25

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