how we got here, and where state lives now
Frontend & React
How React state management got here and where it is now. I build apps like Clarity Health Project and MetaCaddie, and where state lives decides how they feel to use. These articles trace how the ideas changed.
start here: 2-part series
React state, then and now
All 5 articles
- 8 min readVibe Coding Isn't Production Ready for Patients. Here's the Checklist.A vibe coding production-ready checklist for patient apps: PHI leak tests, WCAG 2.1 AA in CI, SMART auth expiry and stale-data states.
- 7 min readThe ESM Mess: JavaScript's Module System Is Still Broken and Here's WhyES Modules have been the supposed future of JavaScript for nine years. Only 9-27% of the ecosystem has adopted them. What's really going on, and how to survive until the ecosystem commits.
- 5 min readReact Tooling 2024: Stop Using the Wrong Shit20+ React apps built this year. What works, what's a waste of time, and why you're probably overengineering.
- 7 min readStop Using Optional Props: Why Discriminated Unions Make Better React ComponentsOptional props feel flexible until they ship a runtime error to production that TypeScript should have caught at compile time. The pattern that prevents it.
- 9 min readReact State Management & Clean SPA ArchitectureRedux, Zustand, Recoil, Context API. Most React apps use the wrong one for the wrong reasons. What each tool is for, when SSR changes the calculus, and how to pick without a fight.
Common questions
Is vibe coding production ready for healthcare apps?
Not by default. An agent can build the app, but lint rules and CI tests should decide when it's done: PHI leak checks, axe accessibility checks, SMART auth and expiry tests, and failure-state tests.
Where do React apps leak PHI in the browser?
In localStorage and sessionStorage, in a React Query or SWR cache that outlives logout, in session replay tools, in analytics and tracking pixels, and in URLs and page titles. HHS says trackers on authenticated pages like patient portals generally have access to PHI.
When do patient portals need to meet WCAG 2.1 AA under Section 504?
After OCR's May 2026 extension, the technical deadline is May 11, 2027 for HHS funding recipients with 15 or more employees and May 2028 for smaller ones. Sources differ on the exact day for smaller recipients, so check the Federal Register notice. The non-discrimination obligation already applies.
Does SMART on FHIR require PKCE?
Yes. SMART App Launch v2.2.0 says all SMART apps SHALL support PKCE, and servers must support S256 and must not support the plain method.