In the supplier.js file there are two exports and it is not based on React Component writing guidelines. the withSnackBar and SnackBarSupplier should be in separated files and the creation of context should be happening in a separate file to pass to withSnackBar.js and SnackBarSupplier files.
It's my idea to adhere to the guidelines of Facebook to react components. maybe there is a better way.