# Проблема с Jquery в компоненте плагина

**URL:** <https://meta.discourse.org/t/issue-with-jquery-in-plugin-component/147086>\
**Category:** Development\
**Created:** [07.Апрель.2020 05:06:53 UTC](https://meta.discourse.org/t/issue-with-jquery-in-plugin-component/147086 "2020-04-07T05:06:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [07.Апрель.2020 06:01:55 UTC](https://meta.discourse.org/t/issue-with-jquery-in-plugin-component/147086/2 "2020-04-07T06:01:55Z")

</div>

init слишком рано в жизненном цикле для применения jQuery. Кроме того, вам не нужно его импортировать. Наконец, вам следует оценить, действительно ли вам нужно использовать его изначально. Если вы всё же должны его использовать, то правильными местами будут didInsertElement или didRender.

---

_[View the full topic](https://meta.discourse.org/t/issue-with-jquery-in-plugin-component/147086)._
