News for hackers. Stuff that matters.
Re:Show HN: A renderless and extendable rich-text editor for... by mathnmusic on Saturday May 25, 2019 @09:57AM (#20009070)
While this is really nice, it's a shame that a VueJS developer is unable to re-use a React-based text-editor which already exists and he found it perfect. This is why Web Components start making a lot of sense.
Re:Show HN: A renderless and extendable rich-text editor for... by philippkuehn on Saturday May 25, 2019 @01:47PM (#20010273)
I didn't call it "perfect". Slate.js is great but has some downsides too. But for Vue.js there was like nothing, so I took the first step.

There is also a core package of Slate, so it's up to you to build a wrapper for Vue too. Slate is still in beta. That's why I chose to built on top of ProseMirror.

Re:Show HN: A renderless and extendable rich-text editor for... by woah on Saturday May 25, 2019 @01:07PM (#20010060)
Will web components let him use a React module with Vue.js without loading both libraries and learning React?

Or is web components a third library that is so much better that you don’t need the other two libraries?

Is this the situation where there are too many standards and you can only solve the problem by creating another standard?

Re:Show HN: A renderless and extendable rich-text editor for... by mfatica on Saturday May 25, 2019 @02:57PM (#20010598)
Web Components should replace them both. They aren't standards - just frameworks developed by third parties. The Web Components standard is the official standard and should be the one people reach for
Re:Show HN: A renderless and extendable rich-text editor for... by mathnmusic on Saturday May 25, 2019 @04:31PM (#20011204)
Web components can't make React/Vue/Angular components reusable anywhere else, but web components themselves are reusable in React/Vue/Angular apps.
Re:Show HN: A renderless and extendable rich-text editor for... by jeremyjh on Saturday May 25, 2019 @10:05AM (#20009126)
It is possible to use a react component in a Vue app but of course what it does to your page weight may not be acceptable.

https://github.com/akxcv/vuera

Re:Show HN: A renderless and extendable rich-text editor for... by adrianhel on Saturday May 25, 2019 @10:17AM (#20009191)
This depends on the app however. For a landing page? No way. For a module within an app I would not mind, as long as lazy imports are used.