# Render a component within a Widget. (Using select-kit components within plugin code)

**URL:** <https://meta.discourse.org/t/render-a-component-within-a-widget-using-select-kit-components-within-plugin-code/84462>\
**Category:** Development\
**Created:** [April 3, 2018, 12:55pm UTC](https://meta.discourse.org/t/render-a-component-within-a-widget-using-select-kit-components-within-plugin-code/84462 "2018-04-03T12:55:25Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [August 31, 2022, 10:04am UTC](https://meta.discourse.org/t/render-a-component-within-a-widget-using-select-kit-components-within-plugin-code/84462/23 "2022-08-31T10:04:22Z")

</div>

> [@merefield](#):
>
> `this.state` is undefined within the change function, so that makes things a bit tricky?

I was able to access that, and the `scheduleRerender()` function. Updated tests and docs in

[https://github.com/discourse/discourse/pull/18145](https://github.com/discourse/discourse/pull/18145)

Just confirming - your `@bind` is imported from `discourse-common/utils/decorators`?

---

_[View the full topic](https://meta.discourse.org/t/render-a-component-within-a-widget-using-select-kit-components-within-plugin-code/84462)._
