Uploaded September 2026 | Updated November 2026, 1 day ago
AI can generate a React component in seconds. Reviewing every line it produces can take much longer.
In this video, I try a different approach: choose libraries that make bad AI-generated code harder to write. Using Effect, StyleX, React, and TypeScript, I build a small app where errors and visual states are constrained by the type system.
You’ll see how Effect handles success, missing data, rate limits, and network failures as typed outcomes. StyleX adds guardrails around styling instead of giving the AI unlimited CSS choices.
Developers are still needed, but our job may be changing. Instead of checking every generated line, we can define the architecture, constraints, and expected behavior, then let the compiler catch more of the mistakes.
Is this how we should build software with coding agents?
Check out my last video on the top MCP servers
youtube.com/watch?v=uiPSA1htycs
Follow me on socials!
X: https://x.com/ErikCH
LinkedIn: linkedin.com/in/erikhanchett
Bluesky : https://bsky.app/profile/erikch.bsky.social
Website: programwitherik.com
https://www.kiro.dev - my favorite harness!
Join my newsletter and get updated when I release cool stuff - programwitherik.com/newsletter
https://effect.website/
stylexjs.com
0:00 Introduction
01:03 Effect
02:00 StyleX
03:32 ShadCN
04:06 Conclusion
AI can generate a React component in seconds. Reviewing every line it produces can take much longer.
In this video, I try a different approach: choose libraries that make bad AI-generated code harder to write. Using Effect, StyleX, React, and TypeScript, I build a small app where errors and visual states are constrained by the type system.
You’ll see how Effect handles success, missing data, rate limits, and network failures as typed outcomes. StyleX adds guardrails around styling instead of giving the AI unlimited CSS choices.
Developers are still needed, but our job may be changing. Instead of checking every generated line, we can define the architecture, constraints, and expected behavior, then let the compiler catch more of the mistakes.
Is this how we should build software with coding agents?
Check out my last video on the top MCP servers
youtube.com/watch?v=uiPSA1htycs
Follow me on socials!
X: https://x.com/ErikCH
LinkedIn: linkedin.com/in/erikhanchett
Bluesky : https://bsky.app/profile/erikch.bsky.social
Website: programwitherik.com
https://www.kiro.dev - my favorite harness!
Join my newsletter and get updated when I release cool stuff - programwitherik.com/newsletter
https://effect.website/
stylexjs.com
0:00 Introduction
01:03 Effect
02:00 StyleX
03:32 ShadCN
04:06 Conclusion










