achieve using class component but we cannot achieve using functional component?
nah
So why there are two types of components? Which one should I prefer?
hooks. newer, less boilerplate, less to worry about (such as this), community uses hooks
Yes. Error boundaries require class components. They are the only thing which does
oh right, forgot this
Обсуждают сегодня