Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ximing/boron
The flow-control goodness for mini program
https://github.com/ximing/boron
Last synced: 9 days ago
JSON representation
The flow-control goodness for mini program
- Host: GitHub
- URL: https://github.com/ximing/boron
- Owner: ximing
- Created: 2018-11-20T18:31:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T05:00:40.000Z (about 6 years ago)
- Last Synced: 2024-12-29T18:44:31.583Z (11 days ago)
- Language: JavaScript
- Size: 98.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## install
```javascript
npm i --save mp-boron
```## Usage
### App
```javascript
import {App as AppFn} from 'mp-boron';App(
AppFn({
async onLaunch(){},
async onShow(){}
})
)
```### Page
```javascript
import {Page as PageFn ,App as AppFn} from 'mp-boron';Page(
PageFn({
async onLoad(){} ,
async onReady(){},
async onShow(){}
})
)
```
Asynchronous life cycle sequence is:> app onLaunch -> app onShow -> page onLoad -> page onReady -> page onShow