New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@serpent/common-react

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serpent/common-react

serpent react common package

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

@serpent/common-react

serpent react common package

项目没有文档,全部采用 ts 来编写,你可以从 ts 的自动补全中获取足够的文档信息,所以请采用支持 ts 的编辑器来使用此模块

注意一:

项目根目录下有 index.d.ts,但没有 index.js 文件,所以不要使用下面这种写法:

import {} from "@serpent/common-react"

而应该使用这种写法:

import {} from "@serpent/common-react/path/to/file"

如果一定要使用第一种方式的话,可以使用 webpack 的 index-loader 来动态加载依赖

注意二:

所有 serpent 项目需要环境默认支持下面的模块:

  • es5
  • es2015.promise
  • es2015.core
  • es2015.collection
  • es2016.array.include

如果没有,请使用对应的 polyfill,或者使用 @durka/polyfill

Keywords

serpent

FAQs

Package last updated on 12 Sep 2020

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