Thank you very much guys , I really appreciate the support from your side !
I just want to be sure that I understand correctly , I am not importing BrythumGantt.js from the minimal example , so in other words , I don't need the wrapper when using hooks ?
Support Forum
That is very clean , much cleaner than using wrapper in my opinion.
I am attaching my minimal demo using hooks , in case anyone else needs it.
I am attaching my minimal demo using hooks , in case anyone else needs it.
- Attachments
-
- timeline-react-app.zip
- (157.64 KiB) Downloaded 127 times
There are pros and cons of both approaches. Using hooks is simpler, however, the developer himself then must take care to propagate changes in the React app down to the instance of Bryntum Scheduler. In other words, he must implement the "reactivity" himself. Also, he must take care of destroying the instance properly to avoid memory leaks.
Wrapper takes care for both reactivity and destroying the instance.
It's a matter of preference, application character, and other factors which way to use; there is no "only one correct way".
It's very good to have both options.
Wrapper takes care for both reactivity and destroying the instance.
It's a matter of preference, application character, and other factors which way to use; there is no "only one correct way".
It's very good to have both options.