![]() | 1 murmur 2021-06-04 09:08:20 +08:00 可以啊,做成不依赖任何框架的纯 js 模块就可以了,然后外面套一层封装,交互少的连封装都不需要 |
![]() | 2 66beta 2021-06-04 09:20:09 +08:00 当然可以了,你甚至可以找一个 mini 版的 mvvm 框架嵌在你的组件里面 |
![]() | 3 Reol 2021-06-04 09:47:03 +08:00 |
![]() | 4 jymsy 2021-06-04 09:48:34 +08:00 封一个 npm 包不就完了么 |
5 diliburong 2021-06-04 09:54:19 +08:00 web component, 库有 polymer 和 LitElement. https://polymer-library.polymer-project.org/ |
![]() | 6 ryougifujino 2021-06-04 11:17:00 +08:00 使用 Svelte 编译到 Web Component,然后 React 或 Vue 项目中引入使用。 |
![]() | 7 dotnet 2021-06-04 13:11:19 +08:00 看微软的这个, 也是 web component https://www.fast.design/docs/integrations/introduction |