Hacker News new | ask | show | jobs
by k__ 2970 days ago
Is QML declarative?
2 comments

As declarative as JSX

Menu {

  title:qsTr("File")

  MenuItem {

    text: qsTr("&Open")

    onTriggered: console.log("Open action triggered");

  }

}
Aren't all markup languages declarative by definition?
QML isn't only about markup, it also support property binding directly in the language - it's a full-fledged reactive environment.
Probably?