re: [Updated] Simplify the require/import paths in your project and avoid ../../../ circles of hell VIEW POST

  1. For CRA enough to create in root .env with NODE_PATH=src and all directories inside ./src will be available by absolute path.

  2. Do not use eject, we have alternatives to modify most of internal configs. U can choose:

  • customize-cra
  • react-app-rewired

Thanks Pavel, I'll have a look at them.


I've updated the post to reflect your suggestion. Thanks

Code of Conduct Report abuse