We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0703e8 commit b923444Copy full SHA for b923444
README.md
@@ -10,19 +10,25 @@
10
npm install --save vant-react
11
```
12
13
+```bash
14
+yarn add vant-react
15
+```
16
+
17
## Usage
18
19
```tsx
-import React, { Component } from 'react'
-
-import MyComponent from 'vant-react'
-import 'vant-react/dist/index.css'
20
21
-class Example extends Component {
22
- render() {
23
- return <MyComponent />
24
- }
25
-}
+import React from 'react';
+import Vant, { Button } from 'vant-react';
+const Example = () => {
+ return (
26
+ <React.Fragment>
27
+ <Vant.Button />
28
+ <Button />
29
+ </React.Fragment>
30
+ );
31
+};
32
33
34
## License
0 commit comments