What is the use of 'return function' in React Native Framework??
Answers
Answered by
21
Answer:
Whatever a function component returns is rendered as a React element. React elements let you describe what you want to see on the screen. Here the Cat component will render a <Text> element: const Cat = () => { return <Text>Hello, I am your cat!
Answered by
10
Answer:
Whatever a function component returns is rendered as a React element. React elements let you describe what you want to see on the screen. Here the Cat component will render a <Text> element: const Cat = () => { return <Text>Hello, I am your cat!
Similar questions