i started this project minutes ago, and there’s already problems. i added the file Topbar.jsx, and tried to import it into home.jsx, but React says that the file doesn’t exist. help?
1 Like
Topbar.jsx is not jn the same directory as home.jsx. The ./ syntax means ‘look in the same folder as I am in’ - to look in the parent directory, which is what you want, you should be using ../Tobar.jsx (notice the double dot).
2 Likes
ohhh. okay, thanks.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.