/react-state-management

Demo app to explore state management with React at a deeper level

Primary LanguageJavaScript

Quick Start

Run the following commands:

npm install
npm start

This will install dependencies, then start the app and mock API.

Starter Project Overview

This project was bootstrapped with Create React App.

I made the following enhancements:

  1. Added a mock API using json-server. Configured npm start to run the app and mock API at the same time using npm-run-all. See Building Applications with React and Flux for details on how to set this up from scratch.
  2. Installed react-router-dom, history (React Router peer dependency), and cross-env for declaring environment variables.
  3. Added some React components to help us get started: Header, Footer, Spinner
  4. Added styles to App.css
  5. Added /public/images.
  6. Added data fetching functions in /src/services.
  7. Added db.json to root as json-server's mock database
  8. Overwrote App.css with custom styles
  9. Simplified index.js (removed service worker)
  10. Deleted from src: index.css, logo.svg, serviceWorker.js, App.test.js
  11. Deleted from public: logo files, manifest.json, robots.txt
  12. Customized App.js and renamed to App.jsx