Comments (3)
It sounds like you have multiple versions of @types/react
installed. Make sure you only have a single version installed either by using Yarn resolutions
or NPM overrides
.
Using latest types and only a single version, the original code works without type issues: Playground Link
from react.
i ran into the same issue and deleting yarn.lock and reinstalling resolved the issue
from react.
That's right. Thanks for your time and sorry for the lazy issue by me.
from react.
Related Issues (20)
- Bug: HOT 14
- Bug: Update hook called on initial render. HOT 3
- Bug: Inconsistent scroll position changes when reordering a list of items with react keys HOT 4
- Bug: React + Typescript - useReducer's initializer arg is required even though it shouldn't be HOT 1
- Add `ignoredHooks` to `react-hooks/exhaustive-deps` HOT 1
- Bug: Calling bundle file using browserify from react gives Syntax error: react_app_testing/src/HashBundle.js: Unexpected character '�' (1:0) HOT 2
- Improve alignment of the footer links [making them responsive] HOT 3
- Bug: Different word cannot be used in place of 'children' as prop HOT 6
- Are Effect Events really necessary? HOT 3
- Bug: useCallback do not respect dependencies HOT 4
- Bug: Suspense does not work in Server Components with Safari on macOS or iOS HOT 2
- Bug: React breaks HTMLInputElement.prototype.value interceptions HOT 1
- README Update
- Bug: Unable to catch errors In React 18.2.0 version HOT 3
- Bug: `useId` generates a new different ID on second render of Strict Mode before un-mount HOT 5
- Bug: Casting inside useEffect gives false positive on dependency array check. HOT 1
- Bug: Manifest Confusion: react-dom NPM Registry data reports different scripts than current package.json HOT 2
- Bug: Vulnerable dependencies (indirect security issues ??) HOT 1
- [DevTools Bug]: Deprecated __REACT_DEVTOOLS_GLOBAL_HOOK__ ???? HOT 1
- [DevTools Bug]: Deprecated __REACT_DEVTOOLS_GLOBAL_HOOK__ ???? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.