Skip to content

ximing/boron

Repository files navigation

install

npm i --save mp-boron

Usage

App

import {App as AppFn} from 'mp-boron';

App(
    AppFn({
        async onLaunch(){},
        async onShow(){}
    })
)

Page

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

About

The flow-control goodness for mini program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages