Answer the question
In order to leave comments, you need to log in
How to import my controls in create-react-app?
I took create-react-app to learn how to work with it. I started making a simple portal for my needs, and the first thing I came across was how to import my own controls without long relative paths:
/src
/Controls
/Button
/Views
index.js <-- как написать import Button from '../Controls/Button' без '..'?
import Button from 'src/Controls/Button', import Button from '/src/Controls/Button'
and so on, but nothing helps.. it seems to only work with relative paths. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question