Почему Phpstorm подсвечивает компонент ConnectedRouter? Инспектор подсказывает, что не хватает атрибута store и onLocationChanged. Само приложение работает.
Код:
import React, {Component, Fragment} from "react";
import configureStore, {history} from "./store/store";
import {Provider} from "react-redux";
import Navigation from "./component/Navigation/Navigation";
import Test from "./component/routes/Main/Main";
import { Route } from "react-router";
import { ConnectedRouter } from 'connected-react-router'
const store = configureStore();
class App extends Component {
render() {
return (
<Provider store={store}>
<ConnectedRouter history={history}>
<Fragment>
<Navigation/>
<Route exact path={'/'} component={Test}/>
</Fragment>
</ConnectedRouter>
</Provider>
)
}
}
export default App;
