Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

290
Views
How to rename the create-react-app top level folder without conflict?

I've seen similar questions before, but the use cases seem to be renaming the app to another lowercase name or it never goes into potential problems that will occur if the folder being uppercase disrupts it other than going against npm conventions.

My ReactJS app is designed just to be a front-end application with client side routing, I don't plan on publishing it on to npm, but I will deploy it on a production level with potentially different types of web servers hosting it.

My method for renaming:

I want my react app to be placed in a folder called MyReactApp.

  1. Run npx cra. NPM doesn't allow uppercases: npx create-react-app MyReactApp

  2. So I run: npx create-react-app my-react-app

  3. My app now sits on a folder called my-react-app/src/index.js with a package name of my-react-app

  4. Now, can I simply go ahead and change only the top level folder name like: my-react-app/src/index.js to MyReactAppDiffName/src/index.js.

By doing it this way, am I potentially messing up dependency structures or introducing problems later on?

I'm currently in the early stages of my app after renaming it like this and there doesn't seem to be a problem yet. Sorry, I don't know if I'm simply overthinking the naming restriction and/or just assuming the top level folder is included under the package .

Also, I have seen this link, but I'm not sure if it's solely talking about the package name: https://github.com/npm/npm/issues/3914#issuecomment-24878907

  1. URL paths and couch doc ids are case sensitive.
  2. The file systems on most unixes are case sensitive.
  3. Human brains are mostly case INsensitive.

and this link: https://github.com/facebook/create-react-app/issues/2165#issuecomment-301627339

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!