# Rendering Component in decorativeWidget API

**URL:** https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537
**Category:** Development
**Created:** [March 7, 2017, 10:20am UTC](https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537 "2017-03-07T10:20:26Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 26, 2022, 1:02pm UTC](https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537/5 "2022-08-26T13:02:57Z")

</div>

This has since changed, so worth investigating:

> [@Render a component within a Widget. (Using select-kit components within plugin code)](https://meta.discourse.org/t/render-a-component-within-a-widget-using-select-kit-components-within-plugin-code/84462/5):
>
> An example of this is available in Discourse itself: [https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6#L362](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6#L362) I wasn’t there when widgets were created, but as far as I can tell, it was created for performance reasons at a time where frontend and especially mobile frontend had huge performance issues. And for dev simplicity it was added the possibility to inject components into widgets. You got to understand that Discourse carries s…

---

_[View the full topic](https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537)._
