I know what ternary operator is in React.
ESLint: Parsing error: Unexpected token .
const routeName = route.state?.routes[route.state.index]?.name ?? INITIAL_ROUTE_NAME;
What does that mean? It uses null coalescing operator in the end, however I can't understand what does the question mark do before a dot.
I know it is a correct syntax because it is a template from expo and they're very popular in react-native development community.