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:

js lib fouita

Create folders and files, insert your js code and save

js lib fouita code

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.