Home > Software engineering >  How to take path of a folder in src folder in react js?
How to take path of a folder in src folder in react js?

Time:03-10

I am creating a react.js application and in src folder i have creater two folders one for components and one for api. Now I want to import my data from a file that is in api folder how do I get the path of it? because I am trying '../../api' but got an error with this line. Please help! Below is the error.

vs code extensions

  • Related