# “组件是使用 gjs 编写的”——但事实并非如此

**URL:** <https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736>\
**Category:** Development\
**Created:** [2025年三月18日 11:53 UTC](https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736 "2025-03-18T11:53:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [2025年三月18日 13:03 UTC](https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736/5 "2025-03-18T13:03:14Z")

</div>

如果您为 FeedbackStream 使用 gjs，我认为它应该可以工作。所以它会是这样的：

```gjs
export default class FeedbackStream extends UserStream {
  <template>
    Your custom template here
  </template>
}

```

我认为在同一个组件继承链中混合使用 hbs/gjs 可能效果不佳。

---

_[View the full topic](https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736)._
