slop lasagna
i think i might have first heard this from Ryan Florence. the idea is that code is often garbage, but react components are nice because they divide that garbage into boxes that are individually replaceable. it's easy to delete a react component, to fork it, to inline it, or to rewrite it from scratch. generally you only need to reason about the code locally. as long as your component tree design (where the state lives and how it flows down) models reality well, the specifics of the code inside every box don
评论
?
参与讨论