How to find out module import instructions when not in the docs?

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 how or what should be imported to make use of the library?