---
order: 3
title: Real project with umi and dva
---
In real project development, you might need a data flow solution like Redux or MobX. Ant Design React is a UI library that can be used with any data flow solution and application framework within the React ecosystem. We have launched dva based on Redux, as well as a pluggable enterprise application framework umi, which is recommended for use in your projects.
Dva is a lightweight data flow solution based on Redux. The concept comes from elm. It supports side effects, hot module replacement, dynamic loading, react-native, SSR, etc. It has been widely used in production.
And [umi](http://umijs.org/) is a routing-based framework that supports [next.js-like conventional routing](https://umijs.org/guide/router.html) and various advanced routing functions, such as [routing-level on-demand loading](https://umijs.org/en/plugin/umi-plugin-react.html#dynamicimport). With a complete [plugin system](https://umijs.org/plugin/) that covers every life cycle from source code to build product, umi is able to support various functional extensions and business needs; meanwhile [Umi UI](https://umijs.org/guide/umi-ui.html) is provided to enhance the development experience and development efficiency through Visual Aided Programming (VAP).
> You may also be interested in [Ant Design Pro](https://pro.ant.design/), an Out-of-box UI solution for enterprise applications based on umi, dva and ant design.
This article will guide you to create a simple application from zero using Umi UI, dva and antd.
## Install Umi UI
It is recommended to use yarn to create an application and execute the following command.
> If you are using npm, execute `npm install umi -g` and the effect will be the same.
```bash
$ yarn global add umi
$ umi -v
2.10.4
```
Make sure the umi version is above 2.10.0.
## Create New App
Start the app,
```bash
$ umi ui
๐ Starting Umi UI using umi@2.10.4...
๐งจ Ready on http://localhost:3000/
```
After starting, Umi UI will automatically open the browser, then click `Create Project`, select the path and enter `App name`, as shown below.
Click `Next`, select `Basic Template`, select `antd` and `dva` on the technology stack, then click `Finish`.
In the project creation process, wait a few minutes.
After creating, go to `Overview` and click on the shortcut entry `Run Dev`.
In the task page, click `Start`,
When prompted, open [http://localhost:8000](http://localhost:8000) in your browser, you will see the welcome page of umi.
## Integrate antd
After selecting `antd` earlier, antd's dependencies are automatically handled and loaded on demand. You can check the `Configuration` to make sure antd is turned on.
> And if you want to use a fixed version of antd, you can install additional antd dependency in your project, and the antd dependencies declared in package.json will be used first.
## Create Routes
We need to write an application displaying the list of products. The first step is to create a route.
If you don't have npx, you need to install it first to execute the commands under node_modules.
```bash
$ yarn global add npx
```
Then create a `/products` route,
```bash
$ npx umi g page products
create src/pages/products.js
create src/pages/products.css
โ success
```
Then open [http://localhost:8000/products](http://localhost:8000/products) in your browser and you should see the corresponding page.
## Write UI Components
As your application grows and you notice you are sharing UI elements between multiple pages (or using them multiple times on the same page), in umi it's called reusable components.
Let's create a `ProductList` component that we can use in multiple places to show a list of products.
Click `Open in editor`,
Create `src/components/ProductList.js` by typing:
```js
import { Table, Popconfirm, Button } from 'antd';
const ProductList = ({ onDelete, products }) => {
const columns = [
{
title: 'Name',
dataIndex: 'name',
},
{
title: 'Actions',
render: (text, record) => {
return (