Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tarojs/router

Package Overview
Dependencies
Maintainers
10
Versions
940
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tarojs/router

Taro-router

  • 4.0.6-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
decreased by-69%
Maintainers
10
Weekly downloads
 
Created
Source

@tarojs/router

H5 端路由系统。

核心 API

createRouter(app, config, type, framework, reactdom)

暴露给 @tarojs/taro-loader/h5 调用,在应用入口文件中调用,创建一个兼容小程序路由规范的应用。

参数
app

入口文件默认导出的组件

config

应用全局配置及页面配置。对应 app.config.jspage.config.js 的返回内容。

type

框架类型,react | vue | solid | preact 四选一。

framework

框架的 default import 对象。

reactdom

可选,react-dom 的 default import 对象。

Keywords

FAQs

Package last updated on 23 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc