# 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:** 19

<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, 8:57am UTC](https://meta.discourse.org/t/render-a-component-within-a-widget-using-select-kit-components-within-plugin-code/84462/19 "2022-08-31T08:57:56Z")

</div>

I suspect you’ll need to use [widget ‘state’](https://meta.discourse.org/t/40347#state-and-actions-4) rather than accessing `this.chosen` - widget instances are short-lived and ‘stateless’. You’ll get a new instance on each re-render, which means that `this.chosen` will be reset.

---

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