WeChat Mini Programs's template and component usage scene

Mini Program provides two componentized tools, template and custom components. If I want to reuse functional modules, I will choose custom components, so what is the usage scenario of the template

Apr.07,2021

template cannot contain JS logic, which is the deadliest. Now that there is component, the template has become the reuse in component, but this reuse does not include JS logic. JS logic can be reused through Behavior. The new course will be explained in detail. Template is still useful, it's lighter.

Menu