Nathan Smith
usePrismjs: A prismjs hook for CRA & React

May 20, 2020, 4:14 PM

React

What is it? Prismjs is a powerful little javascript to add syntax highlighting to <pre> and <code> blocks, but it hasn't kept up with a JavaScript framework-using, module-bundling world. There aren't many docs around how to use it with the npm package, and most want you to use a babel ...

Publishing a Dev and Production CRA App to GH Pages

May 20, 2020, 12:57 PM

React

It's pretty easy to set up a CRA app to deploy to multiple GitHub Pages repos. Here's how.

Why functional components are the future of React (but hooks are dangerous)

June 24, 2019, 8:21 PM

React

featured

I was skeptical. Why would I ever write a functional component instead of a class component? Now, I've seen the light, but also the alluring danger of hooks.

Metal & Synthwave are the Same Thing

September 19, 2018, 4:00 PM

Music

featured

Flow is a state of intense concentration. Genres are social constructs.

Using thefuck On Windows, With Clink & Cmder

August 14, 2018, 3:16 PM

Devtools

featured

'thefuck' is a delightfully named Python package that fixes your mistakes. Lets make it work on Windows.

Projects
Alloy
Homebrewery Markdown Preview
About
Contact