Hi Peter,
You have set the same id for diagram component and div element. So only, the diagram is not rendered. We have modified the sample to solve your issue by setting different id as shown in the screenshot below. We will do changes in react documentation and let you know once it is refreshed online.
Screenshot:
Regards,
Shyam G