ReactNativeDvaTypescript Willow Darkness
Last time we talked about
React Native Redux typescript use redux-thunk or redux-saga
I believe that for the new students, after reading the blog feel understand Alexander.
Then, we need a framework that can fully implement the many operations of redux and is easy to understand and well wrapped. Is there really such a framework? For the most front-line, urgent needs to be addressed. This can be had, this must be had.
The web page is up and fast
Click here: https://github.com/dvajs/dva-docs/blob/master/v1/zh-cn/getting-started.mdGet Started Quickly
With the quick introductory document above, we can learn that the dva framework is so easy and fast to have with learning and applying.
Minimize the implementation of dva Dva-Core
Add a dependency package reference
Define dva-core "declaration"
Strictly speaking, what I've defined is not a declaration, it's a wrapping of dva-core
Create a new file utils/dva.tsx
To make it easier to see asynchronous effects, we've created a new universal tool to create a new file utils/index.ts
Create a new models/count.ts
Then create a new presentation page routes/home.tsx
Initialize dva to create a new index.tsx
Then we run the project to see the results: the