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.
- Host: GitHub
- URL: https://github.com/davidbuck/react-rest-example
- Owner: DavidBuck
- License: mit
- Created: 2020-04-21T12:17:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-27T04:40:55.000Z (over 4 years ago)
- Last Synced: 2025-02-01T03:26:15.192Z (4 months ago)
- Topics: json-server, react-17
- Language: JavaScript
- Homepage:
- Size: 304 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.