Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-flexr
Advanced tools
React Flexbox Grid made simple. Based on the "Solved-by-flexbox"-grid
Base example.
import React from 'react';
import { Grid, Cell } from 'react-flexr';
class Example extends React.component {
render() {
return (
<Grid>
<Cell>1/3<Cell>
<Cell>1/3<Cell>
<Cell>1/3<Cell>
</Grid>
);
}
}
Cell sizes can be controlled with fractions.
import React from 'react';
import { Grid, Cell } from 'react-flexr';
class Example extends React.component {
render() {
return (
<Grid>
<Cell size='6/12'>
Fills Half
<Cell>
<Cell>
Fills Rest.. (Yay for Flexbox)
</Cell>
<Cell size='3/12'>
Fills a quarter
<Cell>
<Cell palm='3/12' lap='1/2'>
Fills on mobile, half on lap and dynamic size everywhere else.
<Cell>
</Grid>
);
}
}
See the example folder for the full implementation of the flexbox grid.
The responsive props are based on ergonomics.
I've used these breakpoints in a variety of apps and grids with success. So far the following breakpoints have beeen implemented:
See defauts file for sizes.
This is still very experimental. If you decide to run this in production. Use it in combination with react-style-webpack-plugin to extract the css.
FAQs
React flexbox grid made simple.
The npm package react-flexr receives a total of 304 weekly downloads. As such, react-flexr popularity was classified as not popular.
We found that react-flexr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.