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.
dt-react-component
Advanced tools
English | 简体中文
React UI component library based on ant-design. Mainly used for middle and back-end products. Our goal is to meet more specific and more specific business scenario components. Of course, we also have excellent business components based on native javascript, such as ContextMenu, KeyEventListener and so on.
// use npm
npm install dt-react-component
// use yarn
yarn add dt-react-component
import { Circle, GoBack } from 'dt-react-component'
const App = () => (
<>
<Circle type='finished'/>
<GoBack url='/api/manage' />
</>
);
And import style manually:
import 'dt-react-component/lib/style/index.css'
// or
import 'dt-react-component/lib/style/index.scss'
The following two methods can only load the components used.
// .babelrc or babel-loader option
"plugins": [
[
"treasure",
{
"libraryName": "dt-react-component",
"libraryDirectory": "lib",
"style": "css" // `style: true` Will load the scss file
}
]
]
Then just import the module from dt-react-component, no need to import style separately. It is equivalent to the manual introduction below.
// babel-plugin-treasure will help you load JS and CSS
import { ContextMenu } from 'dt-react-component';
See more babel-plugin-treasure.
import MarkdownRender from 'dt-react-component/lib/markdownRender'; // Load JS
import 'dt-react-component/lib/markdownRender/style/css'; // Load CSS
// import 'dt-react-component/lib/markdownRender/style'; // Load SCSS
dt-react-component is written in TypeScript with complete definitions, So you will have a better smart reminder experience.
You can view the latest components and documents at this address
https://dtstack.github.io/dt-react-component/
clone locally:
$ git clone git@github.com:DTStack/dt-react-component.git
$ cd dt-react-component
$ npm install
$ npm run storybook
Open your browser and visit http://127.0.0.1:9001,We manage components based on storybook. see more at Storybook.
yarn compile
yarn release -r 2.2.1
npm publish --registry https://registry.npmjs.org/
We welcome all contributions. You can submit any ideas as pull requests or as issues.
Finally, thank all our code contributors
ISC
FAQs
react-component
The npm package dt-react-component receives a total of 9 weekly downloads. As such, dt-react-component popularity was classified as not popular.
We found that dt-react-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.