Frage im Vorstellungsgespräch bei PandaDoc

why do we need react? how do you decide which code should be covered with tests?