Gathering detailed insights and metrics for react-hooks-easy-redux
Gathering detailed insights and metrics for react-hooks-easy-redux
Gathering detailed insights and metrics for react-hooks-easy-redux
Gathering detailed insights and metrics for react-hooks-easy-redux
react-redux-easy-form
Form hooks for react applications with ability to configure fields and validate theirs values
objective-redux
A powerful Redux wrapper for easy state development and management.
master-hook
Easy connect to Redux by hooks with caching
react-redux-human-hooks
React-Redux hooks for human beings
[NOT MAINTAINED] React Redux binding with React Hooks and Proxy
npm install react-hooks-easy-redux
Typescript
Module System
Node Version
NPM Version
TypeScript (89.95%)
JavaScript (10.05%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
503 Stars
328 Commits
11 Forks
9 Watchers
29 Branches
3 Contributors
Updated on Jul 17, 2025
Latest Version
1.6.0
Package Id
react-hooks-easy-redux@1.6.0
Unpacked Size
19.82 kB
Size
6.13 kB
File Count
11
NPM Version
6.8.0
Node Version
8.14.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
30
Easy React bindings for Redux with Hooks API
This is a React bindings library for Redux with Hooks API. There are many such libraries, but this one is specialized for auto-detecting state usage with Proxy.
The official React bindings for Redux is react-redux
.
While its connect
is fine tuned for performance,
writing a proper mapStateToProps
function is sometimes
difficult for beginners.
This library eliminates writing mapStateToProps
at all.
A hook useReduxState
returns the entire Redux state object,
but it keeps track of which properties of the object are used
in rendering. When the state is updated, this hook checks
whether used properties are changed.
Only if it detects changes in the state, it re-renders components.
1npm install react-hooks-easy-redux
1import React from 'react'; 2import { createStore } from 'redux'; 3import { 4 ReduxProvider, 5 useReduxDispatch, 6 useReduxState, 7} from 'react-hooks-easy-redux'; 8 9const initialState = { 10 counter: 0, 11 text: 'hello', 12}; 13 14const reducer = (state = initialState, action) => { 15 switch (action.type) { 16 case 'increment': return { ...state, counter: state.counter + 1 }; 17 case 'decrement': return { ...state, counter: state.counter - 1 }; 18 case 'setText': return { ...state, text: action.text }; 19 default: return state; 20 } 21}; 22 23const store = createStore(reducer); 24 25const Counter = () => { 26 const state = useReduxState(); 27 const dispatch = useReduxDispatch(); 28 return ( 29 <div> 30 {Math.random()} 31 <div> 32 <span>Count:{state.counter}</span> 33 <button type="button" onClick={() => dispatch({ type: 'increment' })}>+1</button> 34 <button type="button" onClick={() => dispatch({ type: 'decrement' })}>-1</button> 35 </div> 36 </div> 37 ); 38}; 39 40const TextBox = () => { 41 const state = useReduxState(); 42 const dispatch = useReduxDispatch(); 43 return ( 44 <div> 45 {Math.random()} 46 <div> 47 <span>Text:{state.text}</span> 48 <input value={state.text} onChange={event => dispatch({ type: 'setText', text: event.target.value })} /> 49 </div> 50 </div> 51 ); 52}; 53 54const App = () => ( 55 <ReduxProvider store={store}> 56 <h1>Counter</h1> 57 <Counter /> 58 <Counter /> 59 <h1>TextBox</h1> 60 <TextBox /> 61 <TextBox /> 62 </ReduxProvider> 63);
The examples folder contains working examples. You can run one of them with
1PORT=8080 npm run examples:minimal
and open http://localhost:8080 in your web browser.
You can also try them in codesandbox.io: 01 02 03 04 05 06 07 08 09
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
104 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More