Explore Library
Code QuizIntermediate

Nesting Stack Inside Tabs

Spot the structural error when nesting a stack inside a tab.

Codejavascript
function HomeStack() {
  return (
    <Stack.Navigator>
      <Stack.Screen name="Feed" component={FeedScreen} />
    </Stack.Navigator>
  );
}

function App() {
  return (
    <NavigationContainer>
      <Tab.Navigator>
        <Tab.Screen name="HomeTab" component={HomeStack()} />
      </Tab.Navigator>
    </NavigationContainer>
  );
}

What is the bug in this code?