Skip to content

Bug: function reactFormatter uses ReactDOM.render #280

Open
@Tabulanga

Description

@Tabulanga

I am using React-tabulator along with Next.js.
When I need to use function reactFormatter, I get an error:

next-dev.js?3515:20 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

import { ColumnDefinition, reactFormatter, ReactTabulator } from 'react-tabulator';

const columns: ColumnDefinition[] = [
  {
    title: 'Power',
    field: 'powerState',
    formatter: reactFormatter(<PowerIcon />),
  },
];

"next": "13.2.1",
"react": "18.2.0",
"react-tabulator": "0.18.1"

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