logoalt Hacker News

ptx • yesterday at 12:22 PM • 1 reply • view on HN

> More like trying to explain to people who have only done imperative programming (and that also in JS of all languages) why a render function was necessary.

It doesn't seem all that different from doing your rendering in the WM_PAINT handler, which was already how things were done in the ancient Win32 API (although it's possible [0] to draw outside WM_PAINT).

[0] https://learn.microsoft.com/en-us/windows/win32/gdi/drawing-...


Replies

madeofpalk • yesterday at 12:58 PM

As a web developer in 2014 when I first heard about react, I had never heard about WM_PAINT as I was not a Win32 developer.

➕ show 1 reply