
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
react-stack
Advanced tools
#React Stack
Simple and intuitive flex-based layout.
###Install
npm install --save react-stack
Don't forget to manually install React^0.14 (peer dependency) if you're using npm@3. ###Use #####ES6
import React from 'react';
import ReactDOM from 'react-dom';
import { VerticalStack, HorizontalStack } from 'react-stack';
// or for brevity import { Vertical, Horizontal } from 'react-stack';
ReactDOM.render(
<HorizontalStack>
<div />
<div />
<VerticalStack>
<div />
<div />
<div />
</VerticalStack>
</HorizontalStack>,
document.getElementById('app')
);
#####ES5
var ReactStack = require('react-stack');
var Vertical = ReactStack.Vertical;
var Horizontal = ReactStack.Horizontal;
...
#####Good old 1998 Script Tag: The component depends on React ^0.14 (a introduction of stateless components), so if you're using it without a build step, React ^0.14 must be present as a global.
<script src="https://npmcdn.com/react@^0.14/dist/react.min.js"></script>
<script src="https://npmcdn.com/react-dom@^0.14/dist/react-dom.min.js"></script>
<script src="https://npmcdn.com/react-stack"></script>
###API
*Stack's and *Wrap's expose standard flex properties:
justifyContent: flex-start (default), flex-end, center, space-between, space-aroundalignItems: flex-start, flex-end, center, baseline, stretch (default)alignContent: flex-start, flex-end, center, space-between, space-around, stretch (default)Lower lever Stack and Wrap add:
orientation: horizontal (default), verticalEven lower Flex add:
wrap: true, false (default)Also check tests. ###Demo Navigate to the 'demo' folder and execute
npm install
npm run build
npm start
###Codepen example
FAQs
Simple and intuitive flex-based layout
The npm package react-stack receives a total of 7 weekly downloads. As such, react-stack popularity was classified as not popular.
We found that react-stack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.