redux-async-get
v0.0.3
Published
for redux easy to fetch the data from GET method
Readme
Redux Async Get
Make easy to fetch data by ES7 async function with GET method for redux middleware.
Installation
npm install redux-async-getWhy use it
use redux-async-get
Easily for your redux action code.
const FetchUsers = () => (
{
url: 'https://randomuser.me/api/',
done: (result, dispatch) => {
if (result) {
dispatch({
type: FETCH_USERS,
payload: result
})
}
},
error: (err) => { throw new Error(err) }
}
)License
MIT
