lib/hyperstack/component/element.rb in hyper-component-1.0.alpha1.2 vs lib/hyperstack/component/element.rb in hyper-component-1.0.alpha1.3
- old
+ new
@@ -43,10 +43,10 @@
# 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)
+ def render(*props, &new_block)
if props.empty?
Hyperstack::Internal::Component::RenderingContext.render(self)
else
props = Hyperstack::Internal::Component::ReactWrapper.convert_props(props)
Hyperstack::Internal::Component::RenderingContext.render(