Skip to content

React 18 deprecation message when testing #50

Description

@aldiand

I had this warning when using jest + RTL

console.error
Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

      16 | export default ({ attendant, onRefresh }: Props) => {
      17 |   const confirmDelete = async () => {
    > 18 |     const isConfirmed = await confirm({

It's just a warning, but how to get rid of it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions