I've been learning react hooks recently. I love that you can refactor components now and remove a lot of logic that made components giant, and reuse the same logic another components
The example before extrapolates all that behavior of running Prism inside any component.
You can see how I use this for my blog posts on github