Запитання 2
What is the main difference between functional components and class components in React Native?
Варіанти відповідей
Functional components are plain functions accepting props and returning JSX, while class components use lifecycle methods and extend React.Component.
Functional components can only be used on web, class components only on mobile.
Class components cannot manage state, but functional components can.
Functional components rely on CSS, and class components rely on inline styles.