Tech gems 👁️ #14: Refactoring components well, SQLite and TypeScript in Node.js
Adrien Zaganelli -
- ▶️ Refactoring your components, the good way
- ▶️ TutorialKit by Stackblitz
- ▶️ Node.js is getting experimental support for TypeScript
- ▶️ Node.js implements a build-in support for SQLite
Refactoring your components, the good way
Alex Kondov gives a glimpse of how you should refactor those legacy components you'll encounter at your new job. Don't forget to test your code!
TutorialKit by Stackblitz
TutorialKit is a new open-source project that simplifies the creation of interactive tutorials for JavaScript frameworks or libraries.
It runs on WebContainers, but tutorials built with TutorialKit are static sites that can be hosted on various platforms and customized visually with themes.
It comes with a CLI generator and a VSCode extension to get you started.
Node.js is getting experimental support for TypeScript
In Node.js version 22, new features are coming. One of those is a lightweight support for Typescript ! Under the hood, node will strip types.
For other cases, you'll need to use TypeScript as usual. My personal favorite is jiti from unjs.