can i use this lib in react or vue?
ericzhao1979 opened this issue · comments
ericzhao1979 commented
React and vue using MVVM to render dom,
If i use this lib, maybe i have to use modifyContent frequently?
Is there a demo about this?
Dan Motzenbecker commented
Yes, since behind the scenes OriDomi is creating numerous DOM element clones, you'll have to make updates via modifyContent
in your componentDidUpdate
. You should also avoid letting React or Vue remove the initial element you give to the OriDomi instance, similar to how you might use a canvas element in these frameworks.
ericzhao1979 commented
thanks for your reply.