WorksheetsReact Native
Total questions: 15
Worksheet time: 8mins
What is React Native?
JavaScript library
JavaScript framework
Programming language
Neither of the above
React Native has a set components for:
IOS platform
Android platform
Both IOS and Android platform
neither of the above
What is props?
which used for rendering dynamic changes whithin component
import component from one another component like react-native in app.js, custom component
which stands for properties and is being used for passing data from one component to another
neither of the above
What is state?
Align children within the main axis of our container
which used for rendering dynamic changes within component
which stands for properties and is being used for passing data from one component to another
neither of the above
what is Class components?
used as container components to handle state management and wrap child components
which are just used for display purposes - these components call functions from parent components to handle user interactions or state updates
are the building blocks of any React app and a typical React app will have many of these
neither of above
What is hook?
helps you to create lifecycle
helps you to customize the component
helps you use state and lifecycle methods behavior in functional React components
neither of the above
Command to create new react native app project called Demo
(a)
Command to run project:
(a)
Which component is for inputting text into the app via a keyboard
(a)
What is React JS?
A JavaScript library for building user interfaces
A server-side framework for building web applications
A programming language for building web applications
A front-end framework for building mobile applications
What is the difference between state and props in React JS?
State is data that can change over time, whereas props are data that are passed down from a parent component to a child component and are immutable.
Props are data that can change over time, whereas state is data that are passed down from a parent component to a child component and are immutable
State and props are the same thing
State and props are not used in React JS
Explain the difference between React and React Native.
React is for web development, while React Native is for mobile app development.
React is only for iOS development, while React Native is only for Android development.
React and React Native are the same thing.
React is for mobile app development, while React Native is for web development.
What are the basic building blocks of a React Native app?
Components
HTML elements
Java classes
Swift functions
Explain the concept of props in React Native.
Props in React Native are used to pass data from a parent component to a child component.
Props in React Native are used to style components
Props in React Native are only used in functional components
Props in React Native are used to pass data from a child component to a parent component
What is the significance of 'setState' method in React Native?
The 'setState' method is used for defining navigation routes in React Native.
The 'setState' method is essential for updating the state of a component in React Native.
The 'setState' method is used for styling components in React Native.
The 'setState' method is responsible for handling user input in React Native.
