Socket
Socket
Sign inDemoInstall

@contentpass/react-flexbox-grid-aphrodite

Package Overview
Dependencies
30
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @contentpass/react-flexbox-grid-aphrodite

Inline Flexbox Grid for React


Version published
Maintainers
1
Install size
173 kB
Created

Readme

Source

react-flexbox-grid-aphrodite

Inline Flexbox Grid for React

npm version NPM Status

React-Flexbox-Grid-Aphrodite is a set of React components that implement flexboxgrid.css. Instead of using css and worrying about css modules and webpack we used some JS functions to generate all of the CSS found in the flexboxgrid library. We then load that JS into aphrodite which then will only pull the classes you need into the dom. This means less overhead and less data sent over the wire that its css counterpart.

Installation

React-Flexbox-Grid can be installed as an npm package:

npm i -S react-flexbox-grid-aphrodite

It has peer dependency requirements on react and aphrodite modules, which can be installed and added to the package manifest like so:

npm i -S react aphrodite

Once you have the workflow ready, you can just require and use the components:

import React from 'react'
import { Grid } from 'react-flexbox-grid-aphrodite'

React.render(<Grid />, document.querySelector('#main'))

Code snippets

import { Grid, Row, Col } from 'react-flexbox-grid-aphrodite';

const MyComponent = () => (
  <Grid>
    <Row>
      <Col xs={6} md={3}>Hello, world!</Col>
    </Row>
  </Grid>
);

Contributors

Credits

License

MIT

Keywords

FAQs

Last updated on 29 Sep 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc