Search results
16 packages found
cache-route for react-router base on react v15+ and router v4+
keep-alive cache for react router
cache-route for react-router base on react v15+ and router v4+
cache-route for react-router base on react v15+ and router v4+
wodax cache-route for react-router base on react v15+ and router v4+, fork from https://github.com/CJY0208/react-router-cache-route
cache-route for react-router base on react v15+ and router v4+
A keep-alive route component for react-router
cache-route for react-router base on react v15+ and router v4+
基于`react 16.8+` ,`react-router 4+` 开发的`react`缓存组件,可以用于缓存页面组件,类似`vue`的`keepalive`包裹`vue-router`的效果功能。
cache-router for react-router base on react v15+ and router v4+
<h1 align="center">Welcome to react router-keep-alive 👋</h1> <p> <a href="#" target="_blank"> <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" /> </a> </p>
react keep router alive
基于`react 16.8+` ,`react-router 4+` 开发的`react`缓存组件,可以用于缓存页面组件,类似`vue`的`keepalive`包裹`vue-router`的效果功能。
```js import KeepAlive from "react-router-dom6-keepalive" ``` ## 使用方法 ### h5形式 ```js import KeepAlive from "react-router-dom6-keepalive" //路由配置 const routeElements = useRoutes(routes); //配置tabBar页面,tabBar页面会一直缓存,pop它也不会销毁。其它页面pop后就会销毁。达到类似微信小程序的路由效果。 cons
A plates stack alike version route Switch of react-router.
react keep alive