Explore Library
Code QuizIntermediate

Using the useRoute Hook

Find the bug in reading params via the useRoute hook.

Codejavascript
import { useRoute } from '@react-navigation/native';

function Details() {
  const route = useRoute();
  return <Text>{route.itemId}</Text>;
}

What is the bug in this code?