Often in documentation for libraries, information will be given in the docs about how to import the module once it’s been installed via npm. For example:
import React from "react"
When this isn’t given, how is it possible to know what should be imported to make use of the library?
>Solution :
For default imports (like the one you showed) you can choose any name you like.
For named exports you’re going to have to dig into the source code to see which named exports exist. If a package doesn’t even provide documentation on that, I wouldn’t consider using it.