Usually it’s flowtype annotation and in this case means that setup()
returns a React.Component. Or it could be TypeScript as well, can’t make sophisticated guess in this particular case.
More Related Contents:
- PropTypes in a TypeScript React Application
- 404 Not Found when trying to install ESLint 8.4.4 with create-react-app
- Unable to load script.Make sure you are either running a Metro server or that your bundle ‘index.android.bundle’ is packaged correctly for release
- How to use refs in React with Typescript
- Why, exactly, do we need React.forwardRef?
- Is using async componentDidMount() good?
- Typescript image import
- How to reset TabNavigator when user logs out (from other screen)
- Set types on useState React Hook with TypeScript
- What will happen if I use setState() function in constructor of a Class in ReactJS or React Native?
- How to create helper file full of functions in react native?
- How to resolve the error on ‘react-native start’
- When to use useImperativeHandle, useLayoutEffect, and useDebugValue
- How to use comments in React
- Requires Babel “7.0.0-0” but was loaded with “6.26.3”
- React Hooks – Modified state not reflecting immediately
- React Hooks – Modified state not reflecting immediately
- Question mark before dot in javascript / react [duplicate]
- React with Typescript — Generics while using React.forwardRef
- Is it possible to limit children to specific components using React with TypeScript?
- Invariant Violation: The navigation prop is missing for this navigator
- How do I type this ‘as’ JSX attribute in TypeScript?
- Typescript React: Access component property types
- how to change jest mock function return value in each test?
- how to async/await redux-thunk actions?
- React and TypeScript—which types for an Axios response?
- PhaseScriptExecution [CP-User] error in React Native
- How to test Async Storage with Jest?
- react native post form data with object and file in it using axios
- Typescript + React/Redux: Property “XXX” does not exist on type ‘IntrinsicAttributes & IntrinsicClassAttributes