{"repo":"dolfbarr/react-log-hook","free":true,"listed":false,"github":"https://github.com/dolfbarr/react-log-hook","clone":"git clone https://github.com/dolfbarr/react-log-hook.git","description":"React hook for logging per component lifecycle","language":"TypeScript","stars":41,"topics":["hook","logging","parcel","react","react-hook","react-lib","react-library","react-typescript","typescript","typescript-lib"],"license":"MIT","category":"analytics","readme_excerpt":"🪵 React Log Hook Lightweight & customizable logging hook for your react components lifecycle By Dolf Barr 🪵 react-log-hook React hook for logging per component lifecycle Features - 🪶 Lightweight — under 1.5 kB gzipped & minified - 🗂️ Typed — made with TypeScript, shipped with types - 🥰 Simple — don't worry about any changes in your props & state - 🔧 Customizable — able to change everything you see in the logs - 🔬 Tested — up to 💯% unit test coverage - 🏎️ Fast — native react hooks & optimized - 📭 No dependecies Install With npm With yarn Usage Basic usage Configuration options FAQ Will it deep copy the value to make sure it will persist in the logs? - 🎉 Yes, 🪵 react-log-hook deep copies the value to make sure it will not be changed in the logs later Do i need to install @types/react-log-hook as well? - 💪 No, 🪵 react-log-hook comes with prebundled types Will it run in production evironment? - ✅ By default 🪵 react-log-hook will run only in dev or development node evironments defined by NODE ENV Roadmap - [x] Add previous state checking - [x] Use object copy to persist in time - [x] Use console groups to handle all the logs - [x] Add dev environment support by default - [x] Polish the looks with component names, function calls, time etc - [x] Add more customization options - [ ] Test with SSR & Server components Contributing - 🌟 Stars & 📥 Pull Requests are welcome for sure! ❤️ Development 🪵 react-log-hook uses npm & npm scripts in development, the following scip","default_branch":null,"files":null,"tree":[],"storefront":"/r/dolfbarr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dolfbarr/react-log-hook/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."}