¡Aprendiendo tRPC! La alternativa de REST y GraphQL para crear APIS.
¡Lo aprendemos desde cero con su creador @alexdotjs
Stream en inglés, pero así practicas!!!! :)
⬇️
twitch.tv/midudev
Yay! Here's a new project from Jotai Labs, "jotai-trpc" a binding for @trpcio!
👉 github.com/jotai-labs/jotai-…
The example can't run with client-only codesandbox (does anyone know any public tRPC server for demo?), so here's the code how it's used. 👇
tRPC is insane. I’m building a Stripe integration – I return Stripe API payloads from the server I get the response data typed for my React components without even saving the files, as if I’m using the Stripe library on the frontend not backend. /cc @alexdotjs
Here's a reference on how to use tRPC + zod + @HookForm:
kitchen-sink.trpc.io/react-h…
- reuse the same zod schema in tRPC & in RHF
- use strings for form values (`.transform` if you need to coerce to dates, numbers etc)
- use a hook like in the example which uses `rawValues: true`
📢 announcing remeda v1.0.0 🚀
My favourite TypeScript utils library finally became "officially stable". If you're looking for a light-weight, type-safe, fully treeshakable, data-first and data-last replacement for lodash/ramda, give it a try:
github.com/remeda/remeda/rel…
👆that! Recently did a green field project with Prisma + tRPC. Never had something so fast and effortless in my 15 year career. I’m very happy with GQL if clients are in different languages, but if you’re only running TS client(s), tRPC is just way simpler.