DEV Community

Discussion on: No More ../../../ Import in React

Collapse
 
vrushank profile image
vrushank

Thanks for sharing, This is really great but It will even greater if we can use alias without ejecting in CRA. Do you have any method to implement alias using CRA?

Also if you have any idea implmenting the same with typescript, please share the same or update the post.

Cheers~

Collapse
 
nilanth profile image
Nilanth

Hey, above method is for CRA only. For typescript use tsconfig.json file instead of jsconfig.json

Collapse
 
vrushank profile image
vrushank

I know this for CRA but do you know how to setup alias?

Some comments have been hidden by the post's author - find out more