Shared Js Lib
We can use native js code inside any component by adding the extension ".js", but it won't be easily accessible in other components. That's why we have "lib" section.
To create your shared files, you can click on the lib icon on the left:
Create folders and files, insert your js code and save
The you can use this code by adding @lib prefix to the import link of your component.
import req from "@lib/http/req.js"
The @lib prefix will be replaced with the appropriate link path to your library when you save the component.