{"repo":"IVLIU/react-offscreen","free":true,"listed":false,"github":"https://github.com/IVLIU/react-offscreen","clone":"git clone https://github.com/IVLIU/react-offscreen.git","description":"react offscreen component like vue keep-alive","language":"TypeScript","stars":152,"topics":["offscreen","react","keep-alive","react-offscreen"],"license":"MIT","category":"ui-components","readme_excerpt":"react-offscreen(activity) react-offscreen can hide components without uninstalling them Features - based on Suspense - minzip only 1.2kb - good performance - react full context support Installation Examples Basic usage Use with createPortal Use with React.lazy Since Activity is implemented based on Suspense, please pay attention to placing the Suspense component under the Activity component when using it, otherwise it may cause the problem that the fallback cannot be displayed normally. Rename to Activity In order to keep pace with the official react, we renamed Offscreen to Activity. At the same time, we will still export Offscreen typescript unstable hooks We provide hook implementation for component activation and deactivation status, but we do not plan to merge it into the main branch. If you need it, please refer to https://github.com/IVLIU/react-offscreen/tree/feat/unstable-hooks Notice please use react16.8 and above versions","default_branch":null,"files":null,"tree":[],"storefront":"/r/IVLIU","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/IVLIU/react-offscreen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}