1.0.1 • Published 4 years ago

@zcorky/dva-for-taro v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

dva-for-taro

NPM version NPM quality Coverage Status Dependencies Build Status Known Vulnerabilities NPM download license issues Open in Gitpod

Connect dva with taro. It is written fully with Typescript.

  • 🕒 Familiar dva API & patterns
  • 💪 Node and Browser Support
  • 🔥 TypeScript

Install

$ npm install @zcorky/dva-for-taro

Usage

import Taro, { Component } from '@tarojs/taro'
import { Provider } from '@tarojs/redux'
import { createStore } from '@zcorky/dva-for-taro';

const store = createStore({
  models: [
    require('./models/count').default,
  ],
})

class App extends Component {
  config = {
    pages: [
      'pages/Index/index',
    ],
    window: {
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black',
    },
  }

  render () {
    return (
      <Provider store={store}>
        <Index />
      </Provider>
    )
  }
}

API

Examples

Relatived

License

MIT © Moeover

1.0.1

4 years ago

1.0.0

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5-beta.4

5 years ago

0.0.5

5 years ago

0.0.5-beta.3

5 years ago

0.0.5-beta.2

5 years ago

0.0.5-beta.1

5 years ago

0.0.5-beta.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago