Computer Science, asked by tanujpthor2008, 7 months ago

What is the use of 'return function' in React Native Framework??

Answers

Answered by SpanditaDas
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 MoonWings
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