8000 GitHub - lomocc/keep-alive-switch
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lomocc/keep-alive-switch

Repository files navigation

keep-alive-switch

react-router keep-alive switch component

Usage

import KeepAliveSwitch from 'keep-alive-switch';

function PointsMall() {
  return (
    <KeepAliveSwitch>
      <Route path="business/list" component={PointsMallList} keepAlive />
      <Route path="business/create" component={PointsMallCreate} />
      <Route path="business/edit" component={PointsMallEdit} />
      <Route path="business/detail" component={PointsMallDetail} />
    </KeepAliveSwitch>
  );
}
0