Nice imports paths in reactjs with jsconfig.json
There is not much here. just came across the jsconfig.json file and was promised that it will blow my mind( actually, come to think of it, most things claim to blow minds in one way or the other).
Oh ya, straight to the point, when you put the jsconfig.json file at the root of your project, (That’s beside the package.json file, you knew, sorry about that). Then you can use the absolute paths instead of the ‘../../components’.
Project folder structure
contents of the jsconfig.json file
how to import files.
That’s it for this short and and and, well bye.