Hello,
I am currently building a custom PCF control (control-type="virtual") with a Toast UI Grid:

Everything works fine, but I'm getting stuck on the rendering of a Toast UI Grid column.
As soon as I use "ReactDOM.render", the control freezes with the following error message:

"Warning: Could not replay rendering after an error. This is likely a bug in React. Please file an issue."
Code:
import React = require("react");
import { Toggle } from '@fluentui/react';
import ReactDOM = require("react-dom");
export class optionalRenderer {
private el: HTMLDivElement;
toggle: any;
constructor(props: any) {
const el = document.createElement('div');
el.className = 'form-check form-switch checkbox';
this.el = el;
this.render();
}
getElement(): HTMLDivElement {
return this.el;
}
render(): void {
console.log('error hiero');
const element = (
<button
className="btn_ontable_edit"
>
edit
</button>
);
ReactDOM.render(element, this.el);
}
}
In the PCF control sandbox, it works fine! So, I think it has something to do with the way Dynamics CE renders the PCF control.

Does anyone know the cause of this? I've been trying for a day but I'm stuck.