protected function renderComponent(string $name, array $arguments): Htmlable
    {
        $component = static::$components[$name];
        $data      = $this->getComponentData($component['signature'], $arguments);

        return new HtmlString(
          $this->view->make($component['view'], $data)->render()
        );
    }
protected function renderComponent(string $name, array $arguments): Htmlable
    {
        $component = static::$components[$name];
        $data      = $this->getComponentData($component['signature'], $arguments);

        return new HtmlString(
          $this->view->make($component['view'], $data)->render()
        );
    }
protected function renderComponent ( string $ name , array $ arguments ) : Htmlable { $ component = static :: $ components [ $ name ] ; $ data = $ this -> getComponentData ( $ component [ 'signature' ] , $ arguments ) ; return new HtmlString ( $ this -> view -> make ( $ component [ 'view' ] , $ data ) -> render ( ) ) ; }
Render a custom component.

@param  string  $name
@param  array  $arguments

@return \Illuminate\Contracts\Support\Htmlable
Render a custom component .