How to avoid using relative path imports in create-react-app?
Create a file called .env
in the project root and write the import path:
NODE_PATH=src/app
After that restart the development server. Now you should be able to import anything inside src/app
without relative paths.
October 20, 2022
858
Read more
What is React?
November 06, 2022
ReactJSHow to programmatically trigger click event in React?
November 06, 2022
ReactJS