Skip to content

Commit c92823d

Browse files
committed
mention v2 beta
1 parent 9f8df13 commit c92823d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[![CircleCI](https://circleci.com/gh/smucode/react-world-flags.svg?style=svg)](https://circleci.com/gh/smucode/react-world-flags)
22

3-
43
# react-world-flags
54

5+
Please check out [v2 beta](https://github.com/smucode/react-world-flags/tree/v2).
6+
67
Easy to use SVG flags of the world for react
78

89
[Demo](https://smucode.github.io/react-world-flags/)
@@ -18,7 +19,7 @@ npm install react-world-flags
1819
```javascript
1920
import Flag from 'react-world-flags'
2021

21-
<Flag code={ code } />
22+
;<Flag code={code} />
2223
```
2324

2425
Where `code` is the [two letter](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), [three letter](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) or [three digit](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) country code.
@@ -28,7 +29,7 @@ You can also pass an optional `fallback` which renders if the given code doesn't
2829
```javascript
2930
import Flag from 'react-world-flags'
3031

31-
<Flag code="foo" fallback={ <span>Unknown</span> }/>
32+
;<Flag code="foo" fallback={<span>Unknown</span>} />
3233
```
3334

3435
All props but `code` and `fallback` are passed through to the rendered `img`

0 commit comments

Comments
 (0)