example-reddit-api

This project was bootstrapped using Create-React-App and is the GitHub repo for the Redux advanced tutorial's Reddit API Example. The sole difference between this code and the tutorial code is that I've replaced use of prop-types with the more modern static type checker flow (more about Flow here).

There are also tests here using Jest and Enzyme, since I originally made this repo to teach a class on testing for React, but feel free to ignore them if that's not what you've wound up here for.

Installation

In the project directory, run yarn install. If you don't yet have yarn, you can get it via npm by running npm install -g yarn.

Running

In the project directory, run yarn start. This runs the app in development mode.

Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits; you will also see any lint errors in the console.