bug: react quick start guide does not mention withRouter when passing history as prop #3553
Open
3 tasks done
Labels
content
Issues related to the contents of the documentation website
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
Trying to follow the simplest vanilla example (https://ionicframework.com/docs/react/quickstart), but getting an error:
Expected Behavior
No error in App.tsx when adding
RouteComponentProps
in Home.tsxSteps to Reproduce
RouteComponentProps
toconst Home: React.FC = () => {
so it becomesconst Home: React.FC<RouteComponentProps> = () => {
...in Home.tsx (I am assuming all this is done in Home.tsx, the tutorial does not say...)import { RouteComponentProps } from "react-router-dom";
(not documented in the tutorial)Code Reproduction URL
b
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: