Skip to content

Commit

Permalink
fix: allow react18
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Feb 7, 2022
1 parent f2e6182 commit e381847
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ While looking around for a good option, I had trouble finding a timezone select

#### Demo: [ndom91.github.io/react-timezone-select](https://ndom91.github.io/react-timezone-select/)

> This demo is also available in the `./examples` directory. Simply run `npm start` in the root of the repository after installing everything in the examples subdirectory and snowpack dev will begin, where you can find the demo at [`localhost:8080`](http://localhost:8080).
> This demo is also available in the `./examples` directory. Simply run `npm run dev` in the root of the repository after installing everything in the examples subdirectory and snowpack dev will begin, where you can find the demo at [`localhost:8080`](http://localhost:8080).
We also have some **more examples** available on Codesandbox using this component with the datetime library `spacetime` ([example](https://codesandbox.io/s/react-timezone-select-usage-z37hf)) as well as with `moment` ([example](https://codesandbox.io/s/react-timezone-select-usage-moment-5n6vn)), as well as in Typescript using the new `Intl` browser API ([example](https://codesandbox.io/s/react-timezone-select-typescript-8lsv3?file=/src/App.tsx)) showing how one might use this component in a real application.

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "react-timezone-select",
"version": "1.3.0",
"version": "1.3.1",
"description": "Usable, dynamic React Timezone Select",
"scripts": {
"dev": "cd example && npm run dev",
"prepublish": "npm run build",
"postpublish": "npm run build:example && npm run deploy",
"build": "rollup -c",
"build:example": "cd example && npm run build",
"deploy": "gh-pages -d example/build",
"deploy": "gh-pages -d example/dist",
"test": "jest",
"test:watch": "jest --watch",
"test:ci": "jest --ci ",
Expand Down Expand Up @@ -46,8 +46,8 @@
}
},
"peerDependencies": {
"react": "^17.0.1 || ^16",
"react-dom": "^17.0.1 || ^16"
"react": "^18 || ^17.0.1 || ^16",
"react-dom": "^18 || ^17.0.1 || ^16"
},
"dependencies": {
"react-select": "^5.2.2",
Expand Down

0 comments on commit e381847

Please sign in to comment.