by slashdave · 2y ago · 0 comments
Arguably it makes even more sense than with React. One of the problems with React is that the underlying DOM is a stateful, imperative system, whereas React wants to behaves much more like an immediate-mode system, where the whole UI can be dropped and re-rendered at any time. But the terminal is not stateful like the DOM, and a more immediate-mode paradigm arguably works better in this context than in the browser.
This project and others like React Native show that it works outside of the DOM: you just render something else instead.
Thinking that React is only helpful for DOM UI seems like a misunderstanding of what React is and what makes it great.