Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
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 stroybook. see more at Storybook.
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 14 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.