DEV Community

Discussion on: "useSWR" - React Hooks for Remote Data Fetching

Collapse
 
nickytonline profile image
Nick Taylor

Thanks sharing Sung. Gonna take a look at this when I get a chance. Between this and restful-react, all kinds of great stuff out there right now.

GitHub logo contiamo / restful-react

A consistent, declarative way of interacting with RESTful backends, featuring code-generation from Swagger and OpenAPI specs 🔥

restful-react

Building React apps that interact with a RESTful API presents a set of questions, challenges and potential gotchas. This project aims to remove such pitfalls, and provide a pleasant developer experience when crafting such applications. It can be considered a thin wrapper around the fetch API in the form of React components and hooks.

As an abstraction, this tool allows for greater consistency and maintainability of dynamic codebases.

Overview

At its core, restful-react exposes a hook, called useGet. This component retrieves data, either on mount…

Collapse
 
dance2die profile image
Sung M. Kim

You're welcome, Nick and thanks for sharing restful-react.

There are many good libraries out there still yet undiscovered and we don't know about :)