lib/react/element.rb
def render(props = {}, &new_block)
      if props.empty?
        React::RenderingContext.render(self)
      else
        props = API.convert_props(props)
        React::RenderingContext.render(
          Element.new(`React.cloneElement(#{to_n}, #{props.shallow_to_n})`,
                      type, properties.merge(props), block),
        )
      end
    end
# Render element into DOM in the current rendering context.
# Used for elements that are not yet in DOM, i.e. they are provided as children
# or they have been explicitly removed from the rendering context using the delete method.
Render element into DOM in the current rendering context.
Used for elements that are not yet in DOM, i.e. they are provided as children
or they have been explicitly removed from the rendering context using the delete method.
Render element into DOM in the current rendering context . Used for elements that are not yet in DOM i . e . they are provided as children or they have been explicitly removed from the rendering context using the delete method .
def render(props = {}, &new_block)
      if props.empty?
        React::RenderingContext.render(self)
      else
        props = API.convert_props(props)
        React::RenderingContext.render(
          Element.new(`React.cloneElement(#{to_n}, #{props.shallow_to_n})`,
                      type, properties.merge(props), block),
        )
      end
    end
def render ( props = { } , & new_block ) if props . empty? React :: RenderingContext . render ( self ) else props = API . convert_props ( props ) React :: RenderingContext . render ( Element . new ( ` React.cloneElement( #{ to_n } ,  #{ props . shallow_to_n } ) ` , type , properties . merge ( props ) , block ) , ) end end
Render element into DOM in the current rendering context.
Render element into DOM in the current rendering context .
props
new_block