อย่างที่ทราบกันว่าการเขียน React Components นั้นมี 2 แบบคือ Class Component และ Function Component (…