为什么组件用渲染函数来写?
#3286
Replies: 1 comment 1 reply
-
没有,模板冷启动会慢一些,而且打包很困难。 另外纯动态组件使用渲染函数的维护性要远高于模板。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
用渲染函数开发的组件,虽然组件不是很复杂,作者开发的时候也许很方便,但在覆盖组件时添加元素比较复杂的维护难度高,最后还是要改成模版方式。有没有觉得要改成模版方式,会更加有利于推广?
Beta Was this translation helpful? Give feedback.
All reactions