2 ms·
If you are looking for api client library that has automatic updates propagation in the UI, condider giving Appollo Client and GraphQL a try. …but I am finding
by Ralfp 5y ago
If you are looking for api client library that has automatic updates propagation in the UI, condider giving Appollo Client and GraphQL a try.
…but I am finding lack of client library for React implementing eg. Open API protocol hard to believe. Is that true?
- eropple 5y agoReact and OpenAPI are orthogonal things. You'd build a JavaScript/TypeScript library for talking to an API, not a React one. (Generally, though it adds some friction unless you have HTTP servers with libraries to help you out, I prefer this approach whenever possible to GraphQL. Mostly because relying on frontend folks to inflict terrible damage to databases via wild abuse of resolvers is not my cup of tea, but as GraphQL tools become smarter I'm coming around on this a bit.)
- Ralfp 5y agoWell, yeah, but OP claims doing REST client with react is something hard.