Socket
Book a DemoInstallSign in
Socket

@kaipeng/article

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaipeng/article

文章显示组件

1.1.23
latest
npmnpm
Version published
Weekly downloads
49
1533.33%
Maintainers
1
Weekly downloads
 
Created
Source

文章呈现组件

安装

npm i @kaipeng/article -S

使用

import Article from '@kaipeng/article'
import '@kaipeng/article/lib/main.min.css'

const App = () => (
    <Article data={data} />
);

render(<App />, document.getElementById("root"));

参数说明

参数说明默认值
data呈现的数据null
titleExtratitle 上额外的元素null

开发

  • clone 项目

  • 安装依赖

npm i 
npm start
  • 开发目录: /src
  • 调试
开发中的调试:

example/app.js 中组件的引入方式改用: import Article from "../src";

更新前的调试:
npm link
npm link @kaipeng/article

example/app.js 中组件的引入方式改用:

import Article from 'article'
import 'article/lib/main.min.css'

FAQs

Package last updated on 23 Jun 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.