0

I want to import a js file named 'usercontent.js' in react component but the current js file is in Component Folder and the file to be included in in the folder Conponent Container of which Component folder is a subfolder e.g. Component Folder contains usercontent.js and Component Folder. and Component Folder conatins the current js file in which I want to import usercontent.js file Please Help

1
  • Why do you want to import a file whether you can import a component or required function from that file? Commented Jul 21, 2021 at 19:50

1 Answer 1

1

you can use '../' for availability Before newfolder

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.