Re:Show HN: TargetJ – New JavaScript framework that can anim...
by dcsan on Wednesday July 17, 2024 @09:12AM
(#40985536)
Does this play nice with react or similar Dom diffing frameworks?
Can the animation values be fed in through react state variables?
[ Parent
| on HN ]
Re:Show HN: TargetJ – New JavaScript framework that can anim...
by ahmadwasfi on Wednesday July 17, 2024 @07:18PM
(#40991207)
Thank you for your question. I don't think it will work well with React. While both React and TargetJ utilize diffing algorithms, there are significant differences between them. TargetJ aims to keep the DOM as small as possible by default, only including visible elements to speed up page rendering. Additionally, it is designed to maintain a flat DOM tree.
Integrating just the DOM animation from TargetJ with React is likely not feasible, as the two would conflict.