sql just orders it to do something so react does the same? just like cmd commands like ls
When people describe react being declarative, they mean that you tend to describe what you want, not how you get there.