Loose equality and type coercion can get you into trouble sometimes.
let's take a look at what the useState hook is and what it does, including TypeScript examples.