Code review checklist

General

/* this is bad code! */
const apiKey = req.body.apiKey

if (apiKey !== process.env.API_KEY) {
    throw new Error ('incorrect api key')
}

// happy path

React

Axios