PandaDoc interview question

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