public function renderComponent(array $props)
    {
        $context = $this->runtime->getCurrentContext();
        $context['props'] = $props;
        $this->runtime->pushContextArray($context);
        $result = $this->runtime->render($this->path . '/renderer');
        $this->runtime->popContext();

        return $result;
    }
public function renderComponent(array $props)
    {
        $context = $this->runtime->getCurrentContext();
        $context['props'] = $props;
        $this->runtime->pushContextArray($context);
        $result = $this->runtime->render($this->path . '/renderer');
        $this->runtime->popContext();

        return $result;
    }
public function renderComponent ( array $ props ) { $ context = $ this -> runtime -> getCurrentContext ( ) ; $ context [ 'props' ] = $ props ; $ this -> runtime -> pushContextArray ( $ context ) ; $ result = $ this -> runtime -> render ( $ this -> path . '/renderer' ) ; $ this -> runtime -> popContext ( ) ; return $ result ; }
Render the component with the given props

@param array $props
@return void|string
Render the component with the given props