I’m taking a look at the event listener code in the documentation:
var listener = (e,d) => { console.log(e,d); }
require('photoshop').action.addNotificationListener([
{
event: "select"
},
{
event: "open"
} // any other events...
], listener);
And I am just curious if there is a best practice on where to place it in a React component.
thanks!