如果 create-react-app 自动添加它们,为什么需要使用 Webpack 和 Babel 从头开始​​创建 React 应用程序?

why there is need to create a React app from scratch with Webpack and Babel if create-react-app automatically adds them?

如果 create-react-app 自动添加,为什么需要使用 Webpack 和 Babel 从头开始​​创建 React 应用程序?我对这件事有点陌生,有人可以帮助我理解这件事吗

因为有些人可能不想要 create-react-app 提供的设置。

设置项目的方法有很多种,您可以从头开始,使用别人的模板,或使用 CLI 工具,例如 create-react-app

选择权在您,但对于初学者的建议是只使用 CRA,因为它最简单,并且可以很好地协同工作,您只需开始构建!