因为react-router v4无法使用'browserHistory'那我该怎么办?如果我想在峰会表格之后转到下一页。这是我的代码
let Profile = ({ history, handleSubmit }) => {
return (
<FirstSec>
<div>
<p>Profile</p>
<form onSubmit={handleSubmit(submit)} >
<div className="form-group">
<Field name="firstName" type="text" className="form-control" label="first name" component={renderField} />
<Field name="lastName" type="text" className="form-control" label="last name" component={renderField} />
<Field name="tel" type="tel" className="form-control" label="tel" component={renderField} />
<Field name="email" type="email" className="form-control" label="email" component={renderField} />
</div>
<button onClick={() => history.push('/apply/1/Occupation')}>Back</button>
<button type="submit">Next</button>
</form>
</div>
</FirstSec>
);
};
Profile = reduxForm({ form: 'profile' })(Profile);