A language being declarative is unrelated to it potentially being functional. The hallmark language of declarative is SQL and I wouldn't describe it as functional
sql just orders it to do something so react does the same just like cmd commands like ls