An open API service indexing awesome lists of open source software.

https://github.com/davidbuck/react-rest-example

simple React example using fetch to consume a restful API.
https://github.com/davidbuck/react-rest-example

json-server react-17

Last synced: 2 months ago
JSON representation

simple React example using fetch to consume a restful API.

Awesome Lists containing this project

README

        

# React Rest Example

This is a simple React example showing how to consume a restful API.

Run `npm run start` to start the JSON server and the React client.

## Tools

- [JSON Server](https://github.com/typicode/json-server)
- [Tailwind](https://tailwindcss.com)

## Versions

- [Version 3.1](https://github.com/DavidBuck/react-rest-example/tree/v3.1) - Example using hooks and async/await. React version 17.0.1
- [Version 3.0](https://github.com/DavidBuck/react-rest-example/tree/v3.0) - Example using hooks and async/await. React version 16.13.1
- [Version 2.0](https://github.com/DavidBuck/react-rest-example/tree/v2.0) - Example using a class component and async/await. React version 16.13.1
- [Version 1.0](https://github.com/DavidBuck/react-rest-example/tree/v1.0) - Example using a class component and promises. React version 16.13.1.