Answer the question
In order to leave comments, you need to log in
Why doesn't react see subfolder in src folder?
I created a simple react project where I created a components folder in the src folder and put two files Header.js and Feed.js into it. In the App.js file, I connect them, but an error occurs when connecting to projects.
What could be the reason for the error?
My code :
import React from 'react';
// import Feed from './Feed';
// import Header from './Header';
import Header from './components/Header';
import Feed from './components/Feed';
function App() {
return (
<div className="App">
<Header/>
<Feed/>
</div>
);
}
export default App;
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