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

render-link

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

render-link

> TODO: description

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

描述

Link 是基础的链接组件,同 a 标签。

安装

$ npm install render-link --save

属性

属性类型默认值必填描述
onClickfunction-false节点被点击之后触发
hrefstring-true跳转目标地址

示例

import Link from "render-link";
import Text from "render-text";
const App = () => {
  return (
    <Link
      href={"//www.taobao.com"}
      onClick={(e) => {
        console.log(e);
      }}
    >
      <Text
        style={{
          fontSize: 14,
          color: "#333333",
        }}
      >
        点击跳转
      </Text>
    </Link>
  );
};
export default App;

FAQs

Package last updated on 10 Feb 2024

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