react-router-v6-keepalive

0.0.1 • Public • Published

React Keep Alive Component

The React Keep Alive component is a utility component that helps in preserving the state of mounted components even when they are unmounted from the DOM. It can be useful in scenarios where you want to maintain the state of a component across different routes or when you want to improve performance by avoiding re-rendering of components.

Installation

You can install the React Keep Alive component using npm or yarn:

npm install react-router-keepalive

Usage

Layout is a component that uses the KeepAlive component to preserve the state of the component when the route changes.

KeepAlive is a utility component that preserves the state of the component when it is unmounted from the DOM.

/react-router-v6-keepalive/

    Package Sidebar

    Install

    npm i react-router-v6-keepalive

    Weekly Downloads

    3

    Version

    0.0.1

    License

    none

    Unpacked Size

    23.9 kB

    Total Files

    21

    Last publish

    Collaborators

    • xooo