Props là dữ liệu được truyền từ component cha xuống con, read-only và không thể thay đổi bởi component nhận.
- State là dữ liệu nội bộ của component, có thể thay đổi theo thời gian và kích hoạt re-render.
- Props giống như tham số hàm, state giống như biến cục bộ của component.
Props are data passed from a parent component to a child, read-only and immutable by the receiving component.
- State is a component's internal data that can change over time and triggers a re-render when updated.
- Props are like function parameters; state is like a component's local variables.