Ubuntu LTS releases are built for the long haul and even with Ubuntu 20.04 LTS right around the corner, it may be a while before you upgrade your system. No reason you should be stuck with an older version of…
You know your Ubuntu system is a bit behind, but who has time for system upgrades? Any why should that stop you from being able to use the latest version of Node.js? Turns out, it doesn’t, and by following these…
Just because you’re a couple of versions behind the current Ubuntu release doesn’t mean you shouldn’t get to take advantage of the latest version of Node.js. Follow these quick and easy steps to install Node.js v14.x on your Ubuntu 19.04…
Even though Ubuntu 20.04 LTS is right around the corner, that doesn’t mean you’re going to jump right on it. If you’re waiting for that first point release but still want to harness the power of the latest and greatest…
In working with the Slate framework for building rich text editors recently, I found myself faced with a scenario where I needed to loop through the editor’s value. The value that comes out the editor is an array of objects…
When writing out a type or interface in TypeScript for something that will be fed into a recursive function you could cop out and use any or you could properly define the structure. Fortunately, both type and interface allow you…
By way of recommendation (thanks Brewer), I’ve been messing around with Slate.js a ton. Such is life, I did have my fair share of issues, particularly in terms of getting it to function like a chat message input where hitting…
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…
Slate.js has some wonderful undo/redo history under the hood, by way of the React hook useMemo. Out of the box is works great, but if you want to reset your editor back to an empty state (in scenarios where the…
Been working on something recently where I wanted to implement a submit handler when a user hits the enter key in an input. That’s not that big of a deal, sniff out the key being pressed, and if it’s the…