Kizspy Question: 38
(Choose 1 answer)
Study the code below and choose the correct output that you will expect to see on the emulator.
import React, { Component } from 'react';
import { Text, View } from 'react-native';
class Header extends Component {
render() {
return (
<View>
<Text>This is header!</Text>
</View>
);
class Footer extends Component {
render() {
return (
<View>
<Text> This is footer!</Text>
</View>
class MainScreen extends Component {
render() {
return (
<View>
<Header />
<Footer />
</View>
export default MainScreen;
A. This is header! This is footer!
B. This is footer! This is header!
C. This is header!
D. This is footer!