Taro: 支持 hooks

Created on 16 Mar 2019  ·  4Comments  ·  Source: NervJS/taro

NervJS会考虑支持hooks吗?这样在taro里也可以应用起来。

有看过一些taro的文档,实例化组件必须要是class

https://nervjs.github.io/taro/docs/component.html
这里 Taro 和 React 不一样的地方在于没有暴露出一个 createClass 的方法,你只能用 ES6 的 class 类来创建 Taro 组件。

enhancement

Most helpful comment

已经在做了

All 4 comments

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

我觉得很难。现在函数组件都不支持,别说hooks了。

已经在做了

close via 4aa409fb1fc5e6197a6f69e7392519716efb9d13

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leafchao picture leafchao  ·  3Comments

qilovehua picture qilovehua  ·  3Comments

chankamlam picture chankamlam  ·  3Comments

GreatAuk picture GreatAuk  ·  3Comments

rainbowMorelhahahah picture rainbowMorelhahahah  ·  3Comments