/react-with-api

A simple reading list in React, used to explain working with APIs

Primary LanguageJavaScript

Working with a REST API

This is a simple example of how working with a REST API may look like, done in React.

Setup

  1. Clone this repository
git clone https://github.com/farrelmahaztra/react-with-api.git
  1. Move into the directory
cd react-with-api
  1. Install dependencies
npm install
  1. Run the app
npm start

Notes

  • Like with last week's state management talk, this isn't the only way to work with a REST API from a frontend. There's plenty to improve!