“Implement text editor DOM updates manually instead of via React”
1–10 of 225 posts
Re: “Implement text editor DOM updates manually instead of via React”
#2On a funny note. My coworker called it. He said a month or so ago -- In couple of months you'll start seeing articles about "Why we moved away from React".
Wonder what's next. Maybe it wraps around back to jQuery...
Re: “Implement text editor DOM updates manually instead of via React”
#3That is a nice speedup! On a funny note. My coworker called it. He said a month or so ago -- In couple of months you'll start seeing articles about "Why we moved away from React". Wonder what's next. Maybe it wraps around back to jQuery...
Re: “Implement text editor DOM updates manually instead of via React”
#4I suspect that Atom editor is a bit of a pathological case for something like React - a very flat hierarchy with lots of children can result in lots of expensive React renders, then subsequent virtual DOM diffing, for what effectively amounts to appending a character to the text area.
Re: “Implement text editor DOM updates manually instead of via React”
#5Re: “Implement text editor DOM updates manually instead of via React”
#6Overall it looks like React guided them in the right direction for how to design their view code, but they don't actually need most of React's functionality.
Re: “Implement text editor DOM updates manually instead of via React”
#7That is a nice speedup! On a funny note. My coworker called it. He said a month or so ago -- In couple of months you'll start seeing articles about "Why we moved away from React". Wonder what's next. Maybe it wraps around back to jQuery...
I think the future is, like many abstractions, one where your tighter loops escape the abstraction (like numpy's C bindings). There's still advantages on a big-picture scale to using declarative frameworks like React
EDIT: one thing is that a text editor can know a lot better how to edit the DOM after an event (like hitting a character) than React's general algorithm
Re: “Implement text editor DOM updates manually instead of via React”
#8Re: “Implement text editor DOM updates manually instead of via React”
#9That is a nice speedup! On a funny note. My coworker called it. He said a month or so ago -- In couple of months you'll start seeing articles about "Why we moved away from React". Wonder what's next. Maybe it wraps around back to jQuery...
Everything becomes familiar. Then someone tries something new. Sometimes it works, sometimes it doesn't, sometimes it promises more than it can deliver. But all the folks who stick with familiar will take the reasons that people leave, and roll their own solutions.
Sometimes a fad framework really is a bust, but more often than not, it's always a stepping stone and motivation for every project out there.
Re: “Implement text editor DOM updates manually instead of via React”
#10I really don't like the idea of running an editor written in JS - I just tried out the latest stable build and it's still very much slower than Sublime Text 3.