Added Print Report function
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.
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 |
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!
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