Hacker News new | ask | show | jobs
by Vanit 2582 days ago
It is using a Component; it's subtle but in the example "Drawing" is a Function Component that is declared using an arrow function. Hooks don't replace Components, but are a way to have state in what were previously known as Stateless Somponents (now Function Components), as well as encapsulating other React features. I personally prefer good old Pure Components.