Hacker News new | past | comments | ask | show | jobs | submit login

ProseMirror is more of a framework for building text editor libraries; Slate and Draft are drop-in, easier-to-integrate text editors.

In addition, ProseMirror is built with JavaScript, and would require writing custom code to adapt to Vue or React. Slate and Draft are both built with React, which has it pros and cons. For example, using React means on each key press it’s going to run it’s whole virtual dom diff algorithm resulting in a higher input latency [1]. ProseMirror is more performant in this case by not using React and managing its own editor state. But Slate and Draft, by using React, gets easy server side rendering.

If I were to build a clone of Typora or Bear, I’d use Slate because 1. those editors are close to what Discord has as its chat editor and Discord uses Slate 2. Slate has better markdown support out of the box.

However if I were to build a Notion clone more focused on WYSIWYG, then I’d go with ProseMirror.

I wouldn’t go with Draft in any scenario since the community seems smaller and the library is less maintained, although twitter uses it.

[1] https://juretriglav.si/what-happens-when-you-type-a-single-l...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: