Skip to content

React 19 - A React Element from an older version of React was rendered. This is not supported. It can happen if #949

Open
@orbachar

Description

@orbachar
Image

Getting this error when trying to use this lib with React 19

import React from 'react';
import { createRoot } from 'react-dom/client';
import { StoreProvider } from 'easy-peasy';
import store from './store';

const container = document.getElementById('root');
if (!container) throw new Error('Root element not found');

const root = createRoot(container);

root.render(
        <StoreProvider store={store}>
            <div></div>
        </StoreProvider>
);

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