
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
bem-react-components
Advanced tools
bem-react-components
is an library that provides a set of visual components build with bem-react-core.
React Components are called blocks according to BEM methodology. Check bem-info for deeper dive.
:construction: Hard Work is in Progress :construction:
Right now bem-react-components
is heavily relying on assemble, so it's necessary to use one.
There are several implementations:
For fast start you could use create-bem-react-app.
Example of webpack.conf.js
module: {
rules: [
{
test: /\.(js)$/,
include: ['./node_modules/bem-react-components', './src'],
use: [
{
loader: 'webpack-bem-loader',
options: {
levels: [
'./node_modules/bem-react-components/blocks',
'./src/my-awesome-blocks'
],
techs: ['js', 'css']
}
},
{
loader: 'babel-loader',
options: { ... }
}
]
}
]
}
To use more options of bem-loader
check docs.
NB: Babel couldn't build css files, only js and js-like.
Example of .babelrc
{
"presets": [["es2015", { "loose":true }], "react"],
"plugins": [
["bem-import", {
"levels": [
"./node_modules/bem-react-components/blocks",
"./src/my-awesome-blocks"
]
}]
]
}
To use more options of bem-import
check docs.
Code and documentation © 2017 YANDEX LLC. Code released under the Mozilla Public License 2.0.
FAQs
BEM React Components
The npm package bem-react-components receives a total of 0 weekly downloads. As such, bem-react-components popularity was classified as not popular.
We found that bem-react-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.