News for hackers. Stuff that matters.
Re:Ink: React for interactive command-line apps by GrumpyNl on Sunday July 23, 2017 @08:39AM (#14831983)
Nice project but why using REACT for this as REACT is designed for dom manipulation
Re:Ink: React for interactive command-line apps by bitwarrior on Sunday July 23, 2017 @02:27PM (#14833641)
Well, no it isn't. ReactDOM is designed for consuming the output of React and constructing a DOM-based UI. React itself is fundamentally a reconciliation engine. This is why we've seen React move to such places as React Native (React for native iOS and Android interfaces), React-UMG (React for constructing interfaces in Unreal Engine's Unreal Motion Graphics), React-PDF for generating PDFs, the list goes on. You can view more here:

https://github.com/chentsulin/awesome-react-renderer

Re:Ink: React for interactive command-line apps by mcphage on Sunday July 23, 2017 @05:08PM (#14834400)
> React itself is fundamentally a reconciliation engine.

Do you know of any good articles / books / videos that talk more about this idea?

Re:Ink: React for interactive command-line apps by acemarke on Sunday July 23, 2017 @06:16PM (#14834712)
Yeah - my React/Redux links list has a big section of articles that talk about React's implementation, including both articles that dig into the actual React source and implementation, and many "build-a-mini React" articles: https://github.com/markerikson/react-redux-links/blob/master... .
Re:Ink: React for interactive command-line apps by mcphage on Sunday July 23, 2017 @06:34PM (#14834780)
Thank you!
Re:Ink: React for interactive command-line apps by esmevane on Sunday July 23, 2017 @05:12PM (#14834425)
This was the first overview I read, and it's pretty good (but incomplete):

https://github.com/reactjs/react-basic

Re:Ink: React for interactive command-line apps by mcphage on Sunday July 23, 2017 @06:34PM (#14834781)
Thanks, I'll check it out.
Re:Ink: React for interactive command-line apps by tambourine_man on Sunday July 23, 2017 @03:22PM (#14833912)
Thanks, React for PDF is new to me. I'll check out.
Re:Ink: React for interactive command-line apps by joubert on Sunday July 23, 2017 @03:11PM (#14833869)
Not just the DOM.

We use React at Netflix for building our TV app. We moved away from a WebKit stack a few years ago; we have our own retained-mode graphics engine optimized for TV devices so we created React-Gibbon. Besides the developer ergonomics stemming from React, we like the approach it affords us for reaching low-performing devices.

Re:Ink: React for interactive command-line apps by jongold on Sunday July 23, 2017 @08:27PM (#14835141)
React is a paradigm.

At Airbnb we built a renderer for Sketch that allows us to generate templates for designers with our real, cross-platform, production components (built with React Primitives) https://github.com/airbnb/react-sketchapp

Re:Ink: React for interactive command-line apps by mhluongo on Sunday July 23, 2017 @02:01PM (#14833493)
https://github.com/vadimdemedes/ink/blob/master/package.json

It's not using React. "X for Y" is an analogy, as in "it's like React, but for CLI apps!"

Re:Ink: React for interactive command-line apps by mshenfield on Sunday July 23, 2017 @01:39PM (#14833377)
> The key difference you have to remember is that the rendering result isn't a DOM, but a string, which Ink writes to the output.

Seems like a pretty easy switch.

The best part about React is being able to declare what your UI will look like instead of constructing it. It's a useful abstraction for any dynamic UI.

Re:Ink: React for interactive command-line apps by ferbivore on Sunday July 23, 2017 @01:24PM (#14833304)
I'm guessing the end-goal of this is to be an ncurses replacement. Anything else wouldn't make sense... right?
Re:Ink: React for interactive command-line apps by ams6110 on Sunday July 23, 2017 @03:57PM (#14834074)
And why would that make sense? Ncurses has been around a long time and is solid.
Re:Ink: React for interactive command-line apps by abritinthebay on Sunday July 23, 2017 @04:17PM (#14834169)
It’s hardly elegant to use or reason about though.

Solid and proven and robust, yes.

Different things however.

Re:Ink: React for interactive command-line apps by woah on Sunday July 23, 2017 @01:45PM (#14833412)
Doesn't seem to be using react. Just a similar API.