Home > Enterprise >  Import a function in a React project
Import a function in a React project

Time:12-04

Having the following import done into a test file:

enter image description here

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

enter image description here

What is wrong with this import?

CodePudding user response:

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.

  • Related