How to reuse the component

In my application,I use the gantt Component,I need to reuse this component.I tried many ways and failed.Here is my code:
%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210909183551

Hello Jesse,
If you want to create several Gantt instances, you need to use the Gantt.getGanttInstance() method:
https://docs.dhtmlx.com/gantt/desktop__multiple_gantts.html
That feature is available only in the Enterprise and Ultimate versions.

Here is a React demo:
https://files.dhtmlx.com/30d/8c6cfb43ec962418d0422fdca6522aec/react+multiple-gantts-7.1.0-trial.zip