---
layout: docs
title: addRenderer
id: class.Facebook.HackCodegen.HackBuilder.addRenderer
docid: class.Facebook.HackCodegen.HackBuilder.addRenderer
permalink: /docs/reference/class.Facebook.HackCodegen.HackBuilder.addRenderer/
---
# Facebook\\HackCodegen\\HackBuilder::addRenderer()




``` Hack
public function addRenderer(
  Facebook\HackCodegen\ICodeBuilderRenderer $renderer,
): this;
```




## Parameters




* [` Facebook\HackCodegen\ICodeBuilderRenderer `](<interface.Facebook.HackCodegen.ICodeBuilderRenderer.md>)`` $renderer ``




## Returns




- ` this `