Explain key React concepts and error handling | Apple Interview Question