We call such components “function components” because they are literally JavaScript functions. You can also use an ES6 class to define a component: class ...
確定! 回上一頁