Gathering detailed insights and metrics for @acutejs/plugin-redux
Gathering detailed insights and metrics for @acutejs/plugin-redux
Gathering detailed insights and metrics for @acutejs/plugin-redux
Gathering detailed insights and metrics for @acutejs/plugin-redux
npm install @acutejs/plugin-redux
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
1,205
Last Day
3
Last Week
6
Last Month
17
Last Year
149
7 Commits
2 Watchers
5 Branches
1 Contributors
Updated on Jun 15, 2021
Minified
Minified + Gzipped
Latest Version
0.0.2
Package Id
@acutejs/plugin-redux@0.0.2
Unpacked Size
2.39 kB
Size
1.32 kB
File Count
5
NPM Version
6.13.4
Node Version
13.6.0
Cumulative downloads
Total Downloads
Last Day
0%
3
Compared to previous day
Last Week
100%
6
Compared to previous week
Last Month
-15%
17
Compared to previous month
Last Year
-21.6%
149
Compared to previous year
1
2
A plugin for Acute to use Redux.
First, install the plugin and its peer-dependency, redux
.
1npm install @acutejs/plugin-redux redux
Then, use Redux’s helpers to create a store.
store.js
1import { createStore, combineReducers } from 'redux'; 2 3const counter = (state = 0, action) => { 4 switch (action.type) { 5 case 'DECREMENT_COUNTER': 6 return state - 1; 7 case 'INCREMENT_COUNTER': 8 return state + 1; 9 default: 10 return state; 11 } 12}; 13 14export default createStore(combineReducers({ 15 counter, 16}));
Next, pass the plugin and a reference to the store to Acute’s createApp()
.
1import redux from '@acutejs/plugin-redux'; 2import store from './store.js'; 3 4createApp({ 5 // ... 6 plugins: [ 7 redux({ 8 store, 9 }), 10 ], 11});
Finally, use the store’s methods to add interactivity to your Acute components.
1import store from './store.js'; 2 3export default { 4 events: { 5 click() { 6 store.dispatch({ type: 'INCREMENT_COUNTER' }); 7 } 8 }, 9 render() { 10 const { counter } = store.getState(); 11 const plural = counter === 1 ? 'time' : 'times'; 12 return `<button> You’ve clicked me ${message} ${plural} </button>`; 13 }, 14};
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
9 existing vulnerabilities detected
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license 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
Score
Last Scanned on 2025-03-10
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