我正在使用InfernoJS作为另一种反应方式。在Inferno中是否可以使用造型-部件而不使用inferno公司?
发布于 2017-10-05 12:17:59
Inferno有一个类似反应的API,但不尝试100%兼容。(与Preact相反,Preact适用于styled-components开箱即用)
因为styled-components返回组件,而不是Inferno组件,所以您必须使用inferno-compat。
https://stackoverflow.com/questions/46583470
复制相似问题