Skip to content

bartlett705/voter-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voter-info

This simple react-redux app demonstrates the minimal usage of redux-thunk to handle async actions in react-redux.

The redux action-creator in src/actions.js fetchReps() is a thunk, which:

  • Dispatches REQUEST_REPS action to set a loading state
  • uses the fetch API to make an AJAX call
  • Dispatches RECEIVE_REPS from within the .then() handler attached to the AJAX call, passing received data to the reducer for hydration into the store.

About

get gov't critter info for a given address using redux-thunk

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published