# api.renderInOutlet not rendering?

**URL:** <https://meta.discourse.org/t/api-renderinoutlet-not-rendering/371955>\
**Category:** Development\
**Created:** [June 27, 2025, 7:19am UTC](https://meta.discourse.org/t/api-renderinoutlet-not-rendering/371955 "2025-06-27T07:19:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [June 27, 2025, 7:19am UTC](https://meta.discourse.org/t/api-renderinoutlet-not-rendering/371955/1 "2025-06-27T07:19:12Z")

</div>

I’m legitimately freaking out. I am trying to render a .gjs component, but that doesn’t show up. I tried rendering in template tags `<h1>Hi</h1>`, but even that won’t show up. What is going on?

```gjs
import { apiInitializer } from "discourse/lib/api";

export default apiInitializer((api) => {
  api.renderInOutlet("above-main-container", <template><h1>Hi</h1></template>);
});

```

I’ve omitted the component import because it doesn’t render with/without it.

I honestly don’t know what I’m doing wrong.

---

_[View the full topic](https://meta.discourse.org/t/api-renderinoutlet-not-rendering/371955)._
