Skip to content

A React renderer without React 18+ API support is being used with React 18+. #3841

@stitch-05

Description

@stitch-05

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions