Whenever I try to import a component that is two or more folders back I get an issue. Using ../Folder works fine, but if I try to use .../Folder I get a module error. How do I get through the directory?
You no longer need to import React from "react" . Starting from the release 17 of React, JSX is automatically transformed without using React. createElement . However, other exports like hooks must be imported.
Use ../..
to go up two directories.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With