React best practices (context vs hook) - TanStack