Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Post Undeleted by Shriyacodes
added 293 characters in body
Source Link

App.js file is alwaysThe components are created as Jsx files in src folder during react-app project creation. Try moving it there, if it is replacedyour folders. Components will remain in components folder in srcTry using-

 import Header from "./Components/MiscComponents/Header.jsx"; import Users from "./Components/UsersDisplay/Users.jsx"; import User from "./Components/UsersDisplay/User.jsx"; import Login from "./Components/MiscComponents/Login.jsx"; import EditOrCreateUser from "./Components/CreateEditUser/EditOrCreateUser.jsx"; 

Only 'js' files take automatic imports without mention. Then, these importsThis should work fineI think.

App.js file is always created in src folder during react-app project creation. Try moving it there, if it is replaced. Components will remain in components folder in src. Then, these imports should work fine.

The components are created as Jsx files in your folders. Try using-

 import Header from "./Components/MiscComponents/Header.jsx"; import Users from "./Components/UsersDisplay/Users.jsx"; import User from "./Components/UsersDisplay/User.jsx"; import Login from "./Components/MiscComponents/Login.jsx"; import EditOrCreateUser from "./Components/CreateEditUser/EditOrCreateUser.jsx"; 

Only 'js' files take automatic imports without mention. This should work I think.

Post Deleted by Shriyacodes
Source Link

App.js file is always created in src folder during react-app project creation. Try moving it there, if it is replaced. Components will remain in components folder in src. Then, these imports should work fine.