Accessing plugin directory path in react

Hi there,

I’m trying to access the path to the plugins directory dynamically in my react app.
The reason being I want a way to access the plugins directory in both windows and mac machines depending on installation.

I see the getPluginsDirectory method has been deprecated. Is there any other available path I can follow to achieve what that method used to provide?