简体   繁体   English

我可以在项目中使用create-react-app吗?

[英]Can i use create-react-app into my projects?

If in future i need to change the code or some config (which is part of node modules), Is that will be a big headache? 如果将来我需要更改代码或某些配置(这是节点模块的一部分),那将是一个很大的麻烦吗?

What is the merits and demerits for using create react app? 使用create react应用有什么优点和缺点?

You can use create-react-app and rest easily knowing that if you need to do any extra configuration at any point, you can always do npm run eject which will make all of the setup create-react-app does for you fully visible. 您可以使用create-react-app并轻松地知道,如果您需要在任何时候进行任何额外的配置,则始终可以执行npm run eject ,这将使所有安装程序create-react-app为您所做的一切都可见。 Read more about it here . 在此处了解更多信息

I would suggest making a few applications configuring Webpack and Babel by yourself just to understand what's really going on and the purpose of it, but the convenience create-react-app is worth looking in to. 我建议您自己编写一些配置Webpack和Babel的应用程序,以了解实际发生的情况以及其目的,但是方便的create-react-app值得研究。

The best way is to start from scratch, or you can just create the boilerplate for your modules and reuse them in your apps. 最好的方法是从头开始,或者您可以为模块创建样板并在应用程序中重复使用。

Yes you can use the create-react-app in your project, but it entirely depends upon your project requirement. 是的,您可以在项目中使用create-react-app,但这完全取决于您的项目要求。

Create-react-app is a reliable way to make small projects with zero configuration. Create-react-app是使用零配置制作小型项目的可靠方法。 if you dont want to rely on that tool, it would be better to create your projects with some configuration(webpack) boilerplate and with time you can customize it to fit your needs. 如果您不想依靠该工具,最好使用一些配置(webpack)样板创建您的项目,并且随着时间的流逝,您可以对其进行自定义以满足您的需求。

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

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