Better HN
topnewbestaskshowjobs
Log inSign up

loopdeloop

11 karma · joined May 6, 2020 (6y ago) · 1 submissions

Submissions

comment 6y ago · link · parent

> Today we know 2-way data binding is gimmicky and makes programs hard to debug. This is the reason React uses unidirectional data flow.

It makes sense for simple apps that are mainly rendering and outputting information/data.

Writing a React that handles even simple forms is however a trip back to the early days of web, where you gotta handle your own DOM events. I'm unclear when repeating the same DOM handlers all over the place became "easier to debug"