Mayank Jaiswal
Mayank Jaiswal

Reputation: 13

React import file from previous directory

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

Upvotes: 0

Views: 177

Answers (1)

Ali Mohamadi
Ali Mohamadi

Reputation: 219

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

Upvotes: 1

Related Questions