render($html); } /** * Factory method to create a new instance of ComponentRenderer */ private static function factory(): ComponentRenderer { if (! self::$components instanceof ComponentRenderer) { self::$components = new ComponentRenderer(); } return self::$components; } }