import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { withRouter } from 'next/router';
class InfoPage extends Component {
render() {
return <div className="info-page">
<div className="info-page__header">
</div>
</div>;
}
}
export default connect(mapStateToProps, mapDispatchToProps)(withRouter(InfoPage));
<Route path='/path1' render={ ()=> <ComponentName />} />
<Route path='/path2' render={ ()=> <ComponentName />} />
<Route path='/path3' render={ ()=> <ComponentName />} />