首页 > 编程知识 正文

react多页面,react保持页面状态

时间:2023-05-03 23:41:07 阅读:150359 作者:4213

import * as React from 'react '

import { Layout } from 'antd ';

importcreathistoryfrom ' history/createhashistory '//返回上一页的代码

const history=creatHistory (; //返回上一页的代码

import './index.less '

const { Header,Sider,Content }=Layout;

export interface IProps {

test? any

history?any

}

界面状态{

}

exportdefaultclassreachinfosextendsreact.com ponent {

constructor(props:iprops ) {

super(props )

}

goBackPage=() ) )。

history.goBack (; //返回上一页的代码

}

render ()。

return (

视频详细信息

视频信息:拍摄时间:2018-10-11拍摄地址:雁塔区{/* */}

Sider

}

}

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。