How do I fire a snackbar notice in admin?
I have a custom plugin and want it on occasions to fire the kind of notice that appears and disapears in the left corner like this one:
I found some code in the Gutenberg docs here:
const MySnackbarNotice = () => ( <Snackbar> Post published successfully. </Snackbar> );
But adding this to my admin-enqueued js script obviously doesn’t work.