I using Next.js
I have this structure:
I need to open the same component for each URLs, like this 'http://localhost:3000/hakkimizda', 'http://localhost:3000/cerez-politikasi', 'http://localhost:3000/kullanim-kosullari' This component:
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));
How can I open the same component in several different URLs in Next.js?
