Skip to content
Open
4 changes: 3 additions & 1 deletion example/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default function App() {
<table>
<thead style={{ fontWeight: 'bold' }}>
<td>Name</td>
<td>Capital</td>
<td>Emoji</td>
<td>Capital</td>
<td>Area</td>
<td>Population</td>
<td>
Expand All @@ -21,6 +21,7 @@ export default function App() {
<pre>.svg</pre>
</td>
<td>Country Calling Code</td>
<td>ISO Country Code</td>
<td>Postal Code</td>
</thead>
{countries.map((c) => (
Expand All @@ -37,6 +38,7 @@ export default function App() {
<img width={'20'} src={c.flags.svg} />
</td>
<td>{c.countryCallingCode}</td>
<td>{c.isoCountryCode}</td>
<td>{JSON.stringify(c.postalCode)}</td>
</tr>
))}
Expand Down
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "use-react-countries",
"version": "2.0.1",
"version": "2.0.4",
"description": "A tiny fully customizable react hook which gives you full list of countries with their flags, emojis and descriptions",
"author": "vre2h",
"license": "MIT",
"repository": "vre2h/use-react-countries",
"main": "dist/index.js",
"module": "dist/index.es.js",
"jsnext:main": "dist/index.es.js",
"types": "src/index.d.ts",
"engines": {
"node": ">=8",
"npm": ">=5"
Expand All @@ -23,7 +24,7 @@
"start-example": "cd example && npm start"
},
"peerDependencies": {
"react": "^18.2.0"
"react": "^18.2.0||^19.1.1"
},
"devDependencies": {
"@babel/core": "^7.0.0",
Expand Down Expand Up @@ -67,6 +68,7 @@
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-peer-deps-external": "^2.2.0",
"rollup-plugin-url": "^2.1.0"
"rollup-plugin-url": "^2.1.0",
"typescript": "^3.9.10"
}
}
Loading