How I Design React UI for LLM Features That Feel Fast and Honest - By Gopi Gugan
I'm Gopi Gugan, a software engineer building AI features with FastAPI, Postgres/pgvector, and React/TypeScript. I recently shipped an LLM feature where the model was fine — but the UI made it feel slow, unreliable, and hard to trust. The fix wasn't a better prompt. It was better UX. You can find mo

I'm Gopi Gugan, a software engineer building AI features with FastAPI, Postgres/pgvector, and React/TypeScript. I recently shipped an LLM feature where the model was fine — but the UI made it feel slow, unreliable, and hard to trust. The fix wasn't a better prompt. It was better UX. You can find more of my writing at gopigugan.ca.
Here's how I design React interfaces for LLM features so they feel fast and honest, even when the model is slow or uncertain.
The single biggest UX win is streaming. Nobody wants to stare at a spinner for 20 seconds while a model thinks.
const res = await fetch ( "/api/chat", { method: "POST", body: JSON. stringify ( { prompt } ) } ); const reader = res. body!. getReader ( ); const decoder = new TextDecoder ( ); while ( true ) { const { done, value } = await reader. read ( ); if ( done ) break; setText ( ( prev ) => prev + decoder. decode ( value ) ); } Enter fullscreen mode Exit fullscreen mode Show uncertainty, don't hide it LLMs are wrong sometimes. A UI that presents every answer with total confidence trains users to trust it blindly — and then blame you when it fails.
Most LLM demos show the perfect answer. Real users hit timeouts, rate limits, and empty responses.
A bare chat input puts all the work on the user. A good LLM UI gives them levers.
Model benchmarks don't tell you whether the feature is usable. I track a few simple things:
If users keep hitting stop, the model isn't too slow — the UI is showing them the wrong thing at the wrong time.
A good LLM feature is mostly good UI. Stream early, be honest about uncertainty, design for failures, and give users real control. The model does the thinking, but the interface decides whether anyone trusts it. That's the part I'm still learning to get right — one feature at a time.