|
|
|
|
|
by mrtksn
2937 days ago
|
|
You bring animation libraries in when your UI animations don't necessarily match the component lifecycles and you don't want to do something basic. Well, you don't have to bring in animation libraries but then you'll have to engineer it by yourself and handle all the quirks. In React you simulate a DOM(or whatever) instead of working on a DOM that's handled by the browser(or whatever). It's just like the difference of a real-world physics and simulated physics. In the real world, you can throw a rock and the nature will handle everything. On a simulation, you will have to think about all kind of details to make your simulation as realistic as possible. |
|