
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@salesforce/design-system-react
Advanced tools
$ npm install @salesforce-ux/design-system @salesforce/design-system-react
Welcome to the project! :wave: This library is the React implementation of the Salesforce Lightning Design System. This library has a peer dependency on @salesforce-ux/design-system
, react
, and react-dom
.
A CommonJS-compatible version has been included within the NPM package to allows usage without transpiling. Use the following named import
syntax to access CommonJS components from /lib/index.js
:
import { Button } from '@salesforce/design-system-react';
<Button label="Hello Button" />
Recommended usage requires that your babel presets are set up correctly. create-react-app
and environments that do not transpile code within node_modules
are not compatible with the component import below. All the examples on the documentation site use this syntax. You can use the Babel preset, @salesforce/babel-preset-design-system-react
, to get started. This preset will keep Babel compatible with Design System React and allow ES6 module benefits such as tree-shaking.
import Button from '@salesforce/design-system-react/components/button';
<Button label="Hello Button" />
.babelrc
settings{
"presets": ["@salesforce/babel-preset-design-system-react"]
}
If you have support questions, please post a question to StackOverflow and tag with design-system-react
. If you find any bugs, create a GitHub Issue.
FAQs
Salesforce Lightning Design System for React
The npm package @salesforce/design-system-react receives a total of 13,115 weekly downloads. As such, @salesforce/design-system-react popularity was classified as popular.
We found that @salesforce/design-system-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.