JavaScript and React unit tests basics

This is the first part of a two-article series where we will cover all you need to know to get started on writing your first Javascript and React unit tests.
Why do we need unit tests?
Unit tests give us a high degree of confidence that our code behaves like we expect it to.