Read: Class 36 Application State - 401-advanced-javascript-muna/amman-javascript-401d1 GitHub Wiki

Application State

What is Redux?

Redux is a predictable state container for JavaScript apps.

Why use Redux?

  • A lot of other tools have begun to do similar things, but big credits to Redux
  • Some of the nice things you get with using Redux include logging, hot reloading, time travel, universal apps, record and replay — all without doing so much on your end as the developer. These things will likely sound fancy until you use them and see for yourself.
  • one of Redux’s maintainers, says that over 60% of React apps in production use Redux. That’s a lot!
  • because of some of the principles it teaches. You’ll learn new ways of doing common things, and this will likely make you a better engineer.

Testing a React-Redux app using Jest and Enzyme

  • Jest was never considered and I was thinking of using either Mocha or Jasmine, as these were the two frameworks I was comfortable with as I have used them on projects related to AngularJS earlier. But on further reading and research I decided to choose AVA due to it being simple to setup and ability to run in parallel. And I started using AVA till I stumbled upon this post, and that’s how I finally thought maybe I should try Jest