Thread of 4 posts1 min read
Effect-native React Server Components
Experimenting with Effect-native React Server Components github.com/tom-sherman/...
github.comGitHub - tom-sherman/rsc-effectContribute to tom-sherman/rsc-effect development by creating an account on GitHub.
You write server components and server functions using Effect, and it integrates into React and the framework (Next.js adapter in the repo) to scope resources to the request or the process
I'm still not sold on the syntax noise, it feels weird when you're trying to just compose UI. But if all of your data layer and business logic is in already in Effect it might make sense instead of doing `await Effect.runPromise(e)` in every server component
It's massively inspired by Effective RSC. It extracts the parts out that make sense for use in a framework agnostic way
www.nikhilsnayak.devIntroducing effective-rscAn Effect-native React Server Components framework for Bun, built on Rspack and the Navigation API.