Skip to content

jongbeau/react-router-flux-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-router-flux-patterns

To build app:

npm install
npm run dev

Then visit: http://localhost:8080/

Background

While working with react, react-router, and flux I've encountered some common patterns around async data loading. Since there isn't complete agreement in the community about how to handle async data, I'll build some simple examples to show how we have been doing this at GoCo.

Patterns:

  • Fetch data from API when a component loads
  • Write data to API
  • Read/Write API and redirect based on response
  • Handle API failures
  • Authentication with redirect (not done)
  • Delare data dependencies and block rendering until data arrives (not done)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published