Resetting a Slate.js editor to an empty state

1 · Josh Sherman · April 12, 2020, 6:18 a.m.
I’ve been messing with Slate.js and happen to be using it in the context of having a persistent editor on the page that can be used post from. It’s sort of like a chat’s message input, it’s always there, and when you submit it, it resets back to it’s original......