Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
This time, we are going to be building a Random Quote Machine. We must code a page that replicates the functionalities present here. The user stories that we must fulfil are the following:
- As a user, I can click a button to show me a new random quote.
- Bonus: As a user, I can press a button to tweet out a quote.
You may, or may not have heard about React before, but it’s getting quite popular as of late. It’s a library made by the guys at Facebook, who describe it as the following:
It’s a front-end framework similar to Angular, Ember or Backbone (someone reading this is probably orchestrating my assassination right now, bear with me please) but not quite so. In a MVC (Model View Controller) architecture, we could say that react is our V (View).