No display when loading diagram.xml in mxgraph and react
I am carrying out a project with mxgraph and react in which I want to implement a function that allows loading a diagram saved in an xml file, but when loading the diagram the diagram is not displayed and when I inspect the page it does not show me errors. This is the complete code: