Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate away from create-react-app #173

Open
mikavilpas opened this issue Oct 1, 2023 · 1 comment
Open

Migrate away from create-react-app #173

mikavilpas opened this issue Oct 1, 2023 · 1 comment
Labels
dependencies Pull requests that update a dependency file

Comments

@mikavilpas
Copy link
Owner

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: reactjs/react.dev#5487

@mikavilpas mikavilpas added the dependencies Pull requests that update a dependency file label Oct 1, 2023
@mikavilpas
Copy link
Owner Author

mikavilpas commented Oct 1, 2023

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant