Type 'ComponentClass' is not assignable to type 'ComponentClass>'. On the last line, I'm getting pretty weird error: Argument of type 'ComponentClass' is not assignable to parameter of type 'StatelessComponent> | ComponentClass>'. To learn more about withRender, take a look at the documentation. It passes updated match, location, and history props to the wrapped component whenever it renders. Namespace google.maps has no exported member MarkerChangeOptionEventNames. To have the browser navigation available within this component, I used a higher-order component that comes with React Router DOM, withRouter. useHistory is not exported form react-router-dom. rxjs/Observable' has no exported member Observable. However, I have certain problems using withRouter function. Javascript answers related to module 'react-router-dom' has no exported member withrouter. ![]() I'm trying to use react router with TypeScript.
0 Comments
Leave a Reply. |