Post APlgq3W93NOIOajmrI by mashiro@hello.2heng.xin
 (DIR) More posts by mashiro@hello.2heng.xin
 (DIR) Post #APlg5mO8PJH1wvvNYW by mashiro@hello.2heng.xin
       2022-11-19T17:08:21Z
       
       0 likes, 0 repeats
       
       我可以把svelte理解为另一个vue吗 :nko_think:
       
 (DIR) Post #APlgX13zx9jzHaUeA4 by overflowcat@mastodon.social
       2022-11-19T17:13:14Z
       
       0 likes, 0 repeats
       
       @mashiro Svelte 语法明显简洁一点吧…
       
 (DIR) Post #APlgbVyexSFOJp8p4i by overflowcat@mastodon.social
       2022-11-19T17:14:05Z
       
       0 likes, 0 repeats
       
       @mashiro 最近在看 Astro,我把 Astro 理解成带 comptime 的 Svelte
       
 (DIR) Post #APlgq3W93NOIOajmrI by mashiro@hello.2heng.xin
       2022-11-19T17:16:43Z
       
       0 likes, 0 repeats
       
       @overflowcat Astrog给我的印象就是cli挺好看~
       
 (DIR) Post #APlipLrjY8agv7cxlI by mashiro@hello.2heng.xin
       2022-11-19T17:38:59Z
       
       0 likes, 0 repeats
       
       讲真我讨厌类似vue这样的template模式。一直说想试试svelte来着,今天终于有空看一下,发现原来是这样,那就算了吧。还有astro也一样,虽然上手是没什么难度的,也虽然各有自己的特色和优势,但我确实更偏好jsx风格。话说回来,vue、svelte这类模版式的组件能在框架层面做好样式隔离,jsx的样式隔离就有点麻烦了,目前认为最好的解决办法是css modules 或者原子类
       
 (DIR) Post #APljHD5xkf7rpMZDCy by overflowcat@mastodon.social
       2022-11-19T17:44:01Z
       
       0 likes, 0 repeats
       
       @mashiro Svelte 的 $ 挺好的,我都感觉它应该叫 React 而不是 Svelte 了
       
 (DIR) Post #APljXTaeBwbfcQfwyu by mashiro@hello.2heng.xin
       2022-11-19T17:46:58Z
       
       0 likes, 0 repeats
       
       @overflowcat 不不不,jsx会比模版更灵活,我不喜欢v-if, v-list这类的写法
       
 (DIR) Post #APljmnk3YAbeSiNsXY by mashiro@hello.2heng.xin
       2022-11-19T17:49:45Z
       
       0 likes, 0 repeats
       
       @overflowcat 还有svelte的响应式和react不太一样,我已经习惯了hook这一套方式了
       
 (DIR) Post #APljncp7d5xgtC9916 by mashiro@hello.2heng.xin
       2022-11-19T17:49:54Z
       
       0 likes, 0 repeats
       
       @overflowcat 还有svelte的响应式和reactive不太一样,我已经习惯了hook这一套方式了
       
 (DIR) Post #APljpgrLaxnTzAAjFw by mashiro@hello.2heng.xin
       2022-11-19T17:50:17Z
       
       0 likes, 0 repeats
       
       @overflowcat 还有svelte的reactive和react不太一样,我已经习惯了hook这一套方式了
       
 (DIR) Post #APlkBcpbFiUHrZoXLc by mashiro@hello.2heng.xin
       2022-11-19T17:54:14Z
       
       0 likes, 0 repeats
       
       我知道vue和svelte的性能会更好,但是做开发,尤其是做个人项目的时候,开发者的开发体验才是最重要的
       
 (DIR) Post #APoU5ulwcTbTybEtGa by GZGavinZhao@hello.2heng.xin
       2022-11-21T01:38:03Z
       
       0 likes, 0 repeats
       
       @mashiro 真的不考虑一下Angular吗 :bili_2233_weiqu:
       
 (DIR) Post #APoUICG3QyrTgMBBLs by mashiro@hello.2heng.xin
       2022-11-21T01:40:16Z
       
       0 likes, 0 repeats
       
       @GZGavinZhao DI模式用来写后端挺好的,像nest.js这样的架构写起来挺舒服的。但是用来做前端说实话我也不喜欢