Skip to content

Instantly share code, notes, and snippets.

View nishkohli96's full-sized avatar

Nishant Kohli nishkohli96

View GitHub Profile
@nishkohli96
nishkohli96 / aliasimports.md
Last active December 25, 2020 09:00
Alias Imports in create-react-app without using Eject

Hi There 👋

In this article, I would love to share with you how to use alias imports in create-react-app without using yarn eject.

If you are unaware of Alias Imports it basically means renaming the absolute paths of your project folders, so that you can use the renamed path to import one module into another. So in other words we will try to resolve your imports from

import { Something } from '../../../components/SthComponent;

to