简体   繁体   中英

Import a function in a React project

Having the following import done into a test file:

在此处输入图像描述

This works fine, but the problem appears when I want to import it into another file, here it is:

在此处输入图像描述

What is wrong with this import?

If you're in the components directory already, going up 3 levels takes you to /libs so you don't need the /libs in your path just../../../shared By the way - screenshots not so good text better.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM