Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 高峰会后如何重定向_Reactjs_Redux_Redux Form - Fatal编程技术网

Reactjs 高峰会后如何重定向

Reactjs 高峰会后如何重定向,reactjs,redux,redux-form,Reactjs,Redux,Redux Form,因为react路由器v4不能使用“browserHistory”,那么我该怎么办?如果我想在峰会后进入下一页。这是我的密码 let Profile = ({ history, handleSubmit }) => { return ( <FirstSec> <div> <p>Profile</p> <form onSubmit={handleSubmit(submi

因为react路由器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>
);
let Profile=({history,handleSubmit})=>{
返回(
侧面图

history.push('/apply/1/occulation')}>Back 下一个 );
})

Profile=reduxForm({ 表格:“个人资料” })(概况); 你应该用它

Profile = reduxForm({ form: 'profile' })(Profile);