react-scan icon indicating copy to clipboard operation
react-scan copied to clipboard

Added Print Report function

Open davebcn87 opened this issue 1 year ago • 2 comments

Adds printReport, where you could pass a list of component names to get specific rendering data.

Example usage

Code:

useEffect(() => {
   printReport(['Button', 'AddTaskBar']);
}, [tasks, activeTab]);

Output:

https://github.com/user-attachments/assets/6b237bb0-1ded-4e82-bd00-defffebc8a97

Next

I'd like to make this function available from console, so you could call it at any moment from the developer tools console and see actual stats.

davebcn87 avatar Nov 22 '24 17:11 davebcn87

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-scan ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 25, 2024 11:50am

vercel[bot] avatar Nov 22 '24 17:11 vercel[bot]

Hey @davebcn87 Nice one!!! When I looked the demo I just realized that it will be cool to add one more function to save a JSON result too ... it will be great for testing on comparison! Once again ... beautiful!

pivanov avatar Dec 02 '24 21:12 pivanov

I'll close this one, as I don't think it makes more sense to use the console with all the tools you are adding in the modal screen

davebcn87 avatar Feb 28 '25 09:02 davebcn87