Installations
npm install @acutejs/plugin-redux
Developer Guide
Typescript
No
Module System
ESM
Node Version
13.6.0
NPM Version
6.13.4
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Developer
liamnewmarch
Download Statistics
Total Downloads
1,205
Last Day
3
Last Week
6
Last Month
17
Last Year
149
GitHub Statistics
7 Commits
2 Watchers
5 Branches
1 Contributors
Updated on Jun 15, 2021
Bundle Size
259.00 B
Minified
201.00 B
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
1,205
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
2
@acutejs/plugin-redux
A plugin for Acute to use Redux.
Usage
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
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 5 are checked with a SAST tool
Score
1.4
/10
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