Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You'd probably be wrong!

Let me introduce you to https://github.com/ocornut/imgui



Which doesn't use React, CSS, or a DOM...? What's your point? ImGUI is imperative UI programming. DOMs are declarative.


ImGui makes UI programming declarative in structure the exact same way React makes UI programming declarative.

React brings to the table is the general concept of immediate mode UI programming. So does ImGUI. Reaching for React doesn't mean it's the only thing the programmers knew, it means it's a general pattern that arises in UI programming.


No, it absolutely does not. ImGUI is a completely, totally different model of GUI programming.


Sorry, but they are the same concept. They’re both immediate mode GUI tools that provide a way to declaratively describe the UI in an imperative language.


React is not immediate mode, imgui is not declarative.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: