JessePeplinski / jammming

http://jammmmming-jesse.surge.sh
0 stars 0 forks source link

Logs #2

Open mikebutts opened 6 years ago

mikebutts commented 6 years ago

https://github.com/JessePeplinski/jammming/blob/1008938b40db3f7346f95edb67555c44b54d24ba/src/util/Spotify.js#L76

I noticed a couple of these console.logs with error messages , which is fine but when you think about it, if you are using a web app and something goes wrong, how often do you open up the console to see if there is an error?

You have a few options but two of the easiest is either using an alert("error") which is the old school way it was done. A better option would be getting "npm toastr" which is those little green or red boxes in the corner of websites that fades after a few seconds. Take a look at it

https://www.npmjs.com/package/toastr

JessePeplinski commented 6 years ago

Thanks for the feedback, I'll give toastr a look!