This stack provides end-to-end typing:
- Database to the Go backend can be typed with ORM libraries like gorm or sqlc
- Go backend to gRPC response is typed via the protobuf spec
- gRPC service to frontend is typed via gRPC-web
- Within frontend code, because React plays nicely with Typescript, the gRPC responses can always be read in a type safe manner.
25.7k views25.7k
Comments