How to import global getInstance function

Thank you for the answer.

So can I assume this reply is wrong: Access webdriver instance from outside of useEffect - #2 by Zhijie_Zhang