Redux Rest Resource (v0.29.3) generates Redux types, actions, and reducers for REST API interactions. It reduces boilerplate by automatically creating CRUD operations from a simple resource definition. Requires redux-thunk for async actions and a fetch polyfill for environments without native fetch. Ships TypeScript types. Released in 2016 and currently in maintenance mode with no major updates since 2018. Alternatives include redux-query and RTK Query.
npm install redux-rest-resourceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define a resource with TypeScript generic and get generated types, actions, and reducers.
Consider migrating to a more modern alternative like RTK Query or redux-query.
Install redux-thunk: npm install redux-thunk
Add a fetch polyfill like 'whatwg-fetch' for older browsers.
Ensure the generic type exactly matches the API response structure.
Run: npm install redux-thunk
Use: import { createResource } from 'redux-rest-resource'Install a fetch polyfill: npm install whatwg-fetch and import it.