We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb2bf09 commit cad82aaCopy full SHA for cad82aa
06-rest-api/01-concepts/00-boilerplate/package.json
@@ -51,7 +51,7 @@
51
"npm-run-all": "^4.1.5",
52
"rimraf": "^3.0.2",
53
"style-loader": "^1.2.1",
54
- "typescript": "^3.9.5",
+ "typescript": "^4.9.4",
55
"url-loader": "^4.1.0",
56
"webpack": "^4.43.0",
57
"webpack-cli": "^3.3.12",
06-rest-api/01-concepts/00-boilerplate/src/pods/hotel/hotel.container.tsx
@@ -9,7 +9,7 @@ import { HotelComponent } from './hotel.component';
9
export const HotelContainer: React.FunctionComponent = (props) => {
10
const [hotel, setHotel] = React.useState<Hotel>(createEmptyHotel());
11
const [cities, setCities] = React.useState<Lookup[]>([]);
12
- const { id } = useParams();
+ const { id } = useParams<any>();
13
const history = useHistory();
14
15
const handleLoadCityCollection = async () => {
0 commit comments