Open mikavilpas opened 1 year ago
chatgpt4 said this:
I have a project using create-react-app. apparently cra is now discontinued. I want to migrate to something else. what are my options?
With the discontinuation of Create React App (CRA), there are several alternatives you can consider for bootstrapping your React applications. Here are a few options:
Next.js: This is a full-stack web application framework that extends the latest React features. It offers features like automatic routing based on a filesystem, server-side rendering, and server-side data fetching with React server components. You can create a new Next.js application using the command npx create-next-app@latest
Source 1.
Gatsby: Gatsby is a React-based framework designed for building fast, secure, and powerful websites. It was primarily built for developing static, content-heavy frontends, but now it also supports server-side rendering. You can initialize a new Gatsby project with the command npm init gatsby
Source 1.
Vite: Vite is another alternative that offers a development server with Hot Module Replacement (HMR) and a build command for production-ready artifacts. It leverages the Rollup plugin interface, making it compatible with most Rollup plugins. To migrate from CRA to Vite, you can follow the steps mentioned in Source 7.
React-Starter-Kit: This is a preconfigured set of boilerplate code providing a basic file and folder structure, commonly used libraries and tools, and initial code to aid developers in starting their projects Source 2.
Create Your Own React Boilerplate: You can also set up your own React boilerplate from scratch. This involves installing react
and react-dom
with npm, setting up webpack and Babel for bundling and transpiling your code, and creating your entry point index.js
and App.js
files Source 14.
Remember, the choice of tool should depend on your project requirements, the learning curve associated with the tool, and the kind of support and community it has.
create-react-app is dead and hasn't received any updates for about a year or more.
Migrate to some other simple framework.
Some discussion: https://github.com/reactjs/react.dev/pull/5487