Describe the bug
When I call recoil's useRecoilState() I get the following error (however the function seems to be working correctly):
A React renderer without React 18+ API support is being used with React 18+.
I don't get any error when I use recoil with React. Perhaps I need to setup more/different paths in tsconfig.json?
To Reproduce
Clone the repo and npm install && npm run dev. The problem is here.
Quick Codesandbox code I made, runs with an error related to a renderer so I assume it's the same issue.