Role-Based UI Rendering in React: Beyond Route Guards
In my last article, How to Implement Role-Based Access Control (RBAC) in React.js App, I walked through building route guards — the <ProtectedRoute> wrapper…
- typescript
- react
- security
Writing · Medium
Posts on architecture, front-end performance and shipping full-stack products. Pulled live from my Medium feed.
Follow on MediumIn my last article, How to Implement Role-Based Access Control (RBAC) in React.js App, I walked through building route guards — the <ProtectedRoute> wrapper…
A few weeks after I published my piece on useCallback vs useMemo, I started noticing a pattern in the codebases I was brought in to review. Teams had read the…
If you’ve ever wired up a normal request/response UI — call an API, show a spinner, render the result — you know that pattern cold. Streaming breaks it…
Your components work when you click around. You’ve tested the happy path in the browser a dozen times, the form submits, the modal closes, the protected route…
Every few months someone on my team opens a PR that adds Redux Toolkit to fetch a list of orders. I close it, add a useQuery hook instead, and the diff shrinks…
Every few months a team on my Slack asks the same question: “Should we move our React + Express app to Next.js?” Usually it’s triggered by something specific —…
Two years ago I watched a prisma migrate deploy step take our checkout API offline for four minutes during peak traffic. The migration itself was…
Calling openai.chat.completions.create() and piping the result back to your frontend takes about ten minutes. Shipping that same feature to production takes a…
Your API works on your machine. You hit it with Postman, the response looks right, you push the branch, and you move on. But “I tried it and it looked fine”…
It deployed fine. Tests passed, the pipeline went green, ECS rolled out the new task definition without a hiccup. Then three days later a customer opens a…