Hopp til hovedinnhold

Ole Anders Stokker

3 innlegg

React Context might not be the right solution for your app

React
Artikkel (8 min)
Fra Ole Anders Stokker

Contexts in React are great. They provide an easy solution for shared component state, avoiding prop drilling and many other common patterns. All that while being built into React itself. What is not to like about that, and when should we reach for other solutions?

Rebuild static pages on-demand with incremental static regeneration

React
Artikkel (9 min)
Fra Ole Anders Stokker

Building static pages with React is a great way to improve the experience of a website. But how do they work, and how can you still get the static pages to change when your data changes?

Enhanced strings with tagged template literals

JavaScript
Artikkel (5 min)
Fra Ole Anders Stokker

Have you ever wanted to add extra functionality to strings? With tagged template literals you can build useful templates, add logic, or write different languages inside strings. How can that be useful, and how does it even work? Dive into how tagged template literals let us build enhanced strings!