Gathering detailed insights and metrics for barracks-react
Gathering detailed insights and metrics for barracks-react
Gathering detailed insights and metrics for barracks-react
Gathering detailed insights and metrics for barracks-react
npm install barracks-react
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
5 Stars
18 Commits
2 Watchers
3 Branches
3 Contributors
Updated on Sep 25, 2017
Latest Version
3.0.1
Package Id
barracks-react@3.0.1
Size
15.37 kB
NPM Version
3.10.9
Node Version
6.9.2
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
An action dispatcher for React that provides for unidirectional dataflows. Intended to be very small and provide a small amount of cognative overhead in providing an "actions up, data down" type model for React. Built on top of barracks.
1const React = require('react') 2const ReactDOM = require('react-dom') 3const bearact = require('./') 4 5const model = { 6 namespace: 'example', 7 state: { 8 hello: '' 9 }, 10 reducers: { 11 setHello: (state, data) => ({hello: data.value}) 12 } 13} 14 15const Main = React.createClass({ 16 handleChange: function (evt) { 17 this.props.send('setHello', {value: evt.target.value}) 18 }, 19 render: function () { 20 return React.createElement('div', {}, [ 21 React.createElement('h1', {}, `Hello, ${this.props.model.hello}`), 22 React.createElement('br', {}, null), 23 React.createElement('input', {value: this.props.model.hello, onChange: (evt) => this.handleChange(evt)}, null)]) 24 } 25}) 26 27const main = React.createElement(bearact(Main, model)) 28const mount = document.createElement('div') 29document.body.appendChild(mount) 30ReactDOM.render(main, mount)
Copyright © 2016 Scripto, licenced under the Apache-2.0 license
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/18 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
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-07-07
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