- Import React
- Posts
- ๐๏ธ The end of state managers?
๐๏ธ The end of state managers?
And the ultimate guide to APIs in Next.js

Hey guys,
Welcome to another edition of Import React by Cosden Solutions!
In today's newsletter, we dive into Lee Robinsonโs guide to building APIs with Next.js, explore whether Redux and global state managers are becoming obsolete, and break down the real cost of AI plans vs. API usage. Plus, we look at TanStack Formโs first stable release and discuss how prefetching can sometimes hurt performance instead of improving it.
Now, let's get into the newsletter! ๐ค
Start learning AI in 2025
Keeping up with AI is hard โ we get it!
Thatโs why over 1M professionals read Superhuman AI to stay ahead.
Get daily AI news, tools, and tutorials
Learn new AI skills you can use at work in 3 mins a day
Become 10X more productive
โก๏ธ The Latest In React
๐๏ธ Itโs probably time to stop recommending Redux
Nathanael Bennett argues state management was once central to React architecture, largely due to the difficulties of sharing state and ensuring reactivity. Redux dominated early React projects, offering a global state solution that avoided prop drilling and unnecessary rerenders.
However, the rise of hooks and newer libraries like Zustand, Recoil, and TanStack Query challenged its necessity.
Now, Bennett argues that Redux and similar state managers should be phased out, especially for typical enterprise CRUD apps, as global state often harms modularization and encapsulation.
Do you think Redux (and other global state managers) are still necessary for most React apps today? |
๐ TanStack Form v1 is here
TanStack Form has officially launched its first stable version, bringing extreme type safety to production-ready forms. Unlike other libraries, it infers types automatically, eliminating the need for manual TypeScript generics. Schema validation is built-in, thanks to Zod, Valibot, and ArkType, with no extra packages required. Plus, it supports async validation with built-in debouncing and AbortSignal-based cancellation for smoother performance.
๐ฐ๏ธ LLM subscriptions vs. APIs value for money
AI plans at $20 per month offer insane value, especially for heavy users. While some suggest using the API to "save money," the reality is different, frequent usage can cost significantly more. This blog breaks down the real expenses, comparing AI plans vs. API pricing to see what truly makes sense.
๐ฆฅ Resource Prefetching May Slow Down Your Website
Prefetching is designed to improve performance, but it can sometimes delay page load times instead. This guide explores the benefits of resource prefetching, how it can cause performance issues, and what you can do to avoid potential pitfalls.
๐ The Ultimate Guide to Building APIs with Next.js
Lee Robinson just released a comprehensive guide on building APIs with Next.js. It covers project setup, the App Router, Route Handlers, handling HTTP methods, dynamic routing, reusable middleware, and when to use a dedicated API layer.
Quick Links
Claude is built with React?
How much traffic can a pre-rendered Next.js site really handle?
How Techโs Obsession with Overloaded Developers Leads to Burnout and Mediocrity.
Next.js 15.2 is now live, including updates for debugging errors, metadata, Turbopack, and more.
๐ Creating Stylized Water Effects with React Three Fiber.
The Most Powerful React Table Component Ever (Code Review)
In this video, we take a look at the most powerful React table component ever. This is a component based on Tanstack table and Shadcn, and it is out of this world.
It follows all of the best practices, it's highly reusable, the code is very clean, and it's also using modern React 19 with the React compiler and all the latest and greatest patterns!
Check it out below. ๐๏ธ
See you soon!
Darius Cosden