简体   繁体   English

如何将reactjs转换为preact?

[英]How to convert a reactjs to preact?

I am getting my head around preact. 我想办法做事。 What would be a disadvantage replacing the reactjs Libs in my reactjs app? 在我的reactjs应用程序中替换reactjs Libs有什么缺点? Or is it recommended to just use it for a production version? 还是建议仅将其用于生产版本?

Best to try it out in development first. 最好先在开发中尝试一下。 Using it only for production is an option, but I'd be concerned about testing one thing and deploying another. 仅将其用于生产是一种选择,但我会担心测试一件事并部署另一件事。 In terms of a disadvantage, if you're relying on the couple things React changes about events, that's not present in Preact. 在不利方面,如果您依赖于React对事件进行更改的几件事,那么Preact中不会提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM