Saved

Guides 6 guides

Strategy

Guides that compare different ways of solving the same problem. They cover choosing a frontend framework, a CSS approach, a state management approach, and a networking style for realtime apps, as well as designing a component’s API and building a test suite in layers. Each one walks through the trade-offs and the reasoning behind each option, so you can choose the one that fits your project and your team.

  1. Choosing a CSS Strategy Choosing between BEM, CSS-in-JS, utility-first CSS, and CSS Modules for your team and your project. Intermediate · 4 min read
  2. Choosing a Frontend Framework The criteria I use to choose between React, Vue, Svelte, Angular, and other frontend frameworks on real projects. Intermediate · 13 min read
  3. Choosing a Networking Style for Realtime Apps Choosing between polling, Server-Sent Events, WebSockets, and CRDTs, depending on how realtime your app needs to be and whether users edit together. Intermediate · 18 min read
  4. Choosing a State Management Approach Choosing between local state, lifted state, dependency injection, and global state libraries, based on what your application needs. Intermediate · 8 min read
  5. Designing Component APIs Choosing between props, slots, render props, compound components, and other patterns when you're designing a component's interface. Intermediate · 11 min read
  6. Testing Confidence Ladder Building the test suite for a modern frontend in layers, using unit, integration, visual, and accessibility tests. Intermediate · 4 min read