{"repo":"aidenybai/react-scan","free":true,"listed":false,"github":"https://github.com/aidenybai/react-scan","clone":"git clone https://github.com/aidenybai/react-scan.git","description":"Scan and fix React performance issues","language":"TypeScript","stars":21781,"topics":["javascript","react","react-dom","rendering","react-scan"],"license":"MIT","category":"workflow-automation","readme_excerpt":"React Scan You can still use React Scan, but we recommend React Doctor React Doctor brings React Scan’s performance focus to coding agents, with static checks for architecture, security, accessibility, and more. Try React Doctor → React Scan automatically detects performance issues in your React app. - Requires no code changes -- just drop it in - Highlights exactly the components you need to optimize - Always accessible through a toolbar on page Quick Start Try out a demo! → Install The init command will automatically detect your framework, install react-scan via npm, and set up your project. Manual Installation Install the package: Then add the script tag to your app. Pick the guide for your framework: Script Tag Paste this before any scripts in your index.html : Next.js (App Router) Add this inside of your app/layout.tsx : Next.js (Pages Router) Add this into your pages/ document.tsx : Vite Example index.html with React Scan enabled: Remix Add this inside your app/root.tsx : Browser Extension Install the extension by following the guide here. API Reference Options - scan(options: Options) : Imperative API to start scanning - useScan(options: Options) : Hook API to start scanning - setOptions(options: Options): void : Set options at runtime - getOptions() : Get the current options - onRender(Component, onRender: (fiber: Fiber, render: Render) = void) : Hook into a specific component's renders Why React Scan? React can be tricky to optimize. The issue is that component props","default_branch":null,"files":null,"tree":[],"storefront":"/r/aidenybai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aidenybai/react-scan/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."}