I have a custom React Hooks, named bar
at foo
directory, and I import it with the way below:
import * from "../../foo/bar";
and the question is, how can I do it with the way:
import * from "@foo/bar";
to avoid find the directory boring.
I have a custom React Hooks, named bar
at foo
directory, and I import it with the way below:
import * from "../../foo/bar";
and the question is, how can I do it with the way:
import * from "@foo/bar";
to avoid find the directory boring.