Open divyaansh0105 opened 1 week ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
I am getting an error if I change the line of parenthesis after the return statement
What is the error?
'App' cannot be used as a JSX component. Its type '() => void' is not a valid JSX element type. Type '() => void' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'. Type 'void' is not assignable to type 'ReactNode'.
Description
I am getting an error if I change the line of parenthesis after the return statement
Steps to reproduce
Start a basic react app using typescript template
React Native Version
0.74.1
Affected Platforms
Runtime - Desktop
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com
Screenshots and Videos