Запитання 4
What is the difference between state and props in React?
Варіанти відповідей
State is owned and modifiable by the component; props are immutable data passed from parent components.
Props store internal data; state passes external information from parents.
State is used only in class components; props are only for functional components.
State is immutable; props can be changed arbitrarily by the component.