Podcast
Questions and Answers
What is the main difference between React and React Native?
What is the main difference between React and React Native?
- React components interact with native APIs via HTML
- React Native runs in a background process directly on the end-device (correct)
- React uses HTML and CSS for styling
- React Native manipulates the DOM via the Virtual DOM
What is the equivalent method in React Native for making an API call, similar to AJAX in web applications?
What is the equivalent method in React Native for making an API call, similar to AJAX in web applications?
- get
- callAPI
- request
- fetch (correct)
When does the componentDidMount method in a React Native component get invoked?
When does the componentDidMount method in a React Native component get invoked?
- When the component is mounted (correct)
- When the component is being updated
- When the component is about to unmount
- When the component receives new props
What is used to display a default spinner on the screen while waiting for an API response in React Native?
What is used to display a default spinner on the screen while waiting for an API response in React Native?
What method is used to render a list of images in a React Native component?
What method is used to render a list of images in a React Native component?