Why React JS is Declarative?
React JS is declarative because it allows developers to describe what they want the user interface (UI) to look like, rather than explicitly telling the computer how to create the UI. This is in contrast to imperative programming, which involves explicitly specifying each step of a program’s execution.