Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Add migration guide from vanilla React #17455

Closed
leerob opened this issue Sep 29, 2020 · 5 comments
Closed

Add migration guide from vanilla React #17455

leerob opened this issue Sep 29, 2020 · 5 comments
Assignees

Comments

@leerob
Copy link
Member

leerob commented Sep 29, 2020

Feature request

As a user of [x] framework/language, I'd love to see an easy path towards migrating to Next.js

Describe the solution you'd like

Documentation around common providers and how exactly you can switch to Next.js from them.

Additional context

Let's start with a few of the most popular and see what others in the community would get value from.

@leerob leerob added good first issue Easy to fix issues, good for newcomers type: documentation labels Sep 29, 2020
@Maxgit3
Copy link

Maxgit3 commented Oct 4, 2020

I would be interested in helping with a migration guide for Vanilla React. Would it be a comparison of building an app in React vs Next js or a comparison of the features? I have been working with React and Next js. I am new to open source contribution. I am willing to help anyway I can.

@leerob leerob removed the good first issue Easy to fix issues, good for newcomers label Oct 4, 2020
@leerob
Copy link
Member Author

leerob commented Oct 4, 2020

Hey @Maxgit3! Thanks for offering to help. I just removed "good first issue" because I don't want to lead you down the wrong path. The scope of what I have in mind for this will involve advanced React/Next knowledge.

  • If I've ejected Create React App (or have hand-rolled my own React setup with Webpack / Babel), how can I understand the differences in my custom setup versus what Next provides by default? Link to docs for Webpack and Babel overrides for Next.
  • Try to find the most common reasons people eject Create React App and what those configurations are. Then, if possible, show how they can be accomplished with Next.
  • There's probably an index.html file that needs to be converted into the Next way of doing things
  • Link to the "Migrating from Create React App" documentation when it's finished to include how to transform using React Router to Next's file-system based routing
  • If you have custom file loaders set up for CSS/Sass/assets, explain how that's all built into Next and show how to convert.
  • Talk about new features that are added by default in Next that you can probably remove if you had them added manually (optional chaining, polyfilling fetch, etc)
  • If you had custom code splitting, you can remove that
  • Probably wouldn't hurt to mention how env variables are handled with next (specifically thinking how you prefix with NEXT_PUBLIC_ to have it exposed client side)

@Maxgit3
Copy link

Maxgit3 commented Oct 7, 2020

Thanks for the update

@gfortaine
Copy link
Contributor

@samcx
Copy link
Member

samcx commented Feb 22, 2024

Moving this to :nextjs: discussions since this is a feature request!

@vercel vercel locked and limited conversation to collaborators Feb 22, 2024
@samcx samcx converted this issue into discussion #62362 Feb 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants