Khởi tạo state từ props (useState(props.value)) chỉ chạy một lần khi mount, khi props thay đổi state sẽ không cập nhật theo.
- Đây là anti-pattern gây ra bugs khó phát hiện.
- Nếu cần derived state từ props, hoặc tính toán trong render, hoặc dùng useEffect để sync, hoặc làm component fully controlled.