3.5.66 • Published 2 years ago

@vnxjs/router v3.5.66

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@vnxjs/router

H5 side routing system.

Core API

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

Exposed to @vnxjs/vnmf-loader/h5 call, called in the application entry file, to create an application compatible with the applet routing specification.

parameters

app

Components exported by default in the entry file

config

Apply global configuration and page configuration. Corresponds to the return content of app.config.js and page.config.js.

type

Framework type, react | vue | nerv to choose one of three.

framework

The framework's default import object.

reactdom

Optional, the default import object for react-dom.