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.

Projects
Alloy
Homebrewery Markdown Preview
About
Contact