Suggestion: Add Code Snippets to Showcase Pages
Hi! To make the useActionState and useFormStatus showcase pages more educational, I propose adding the relevant code snippets directly onto the pages themselves.
This would allow developers to see both the live demo and the code that powers it in one place, which would be very helpful for learning.
If you agree, I would be happy to create a new pull request for this improvement.
I agree with that : it's a great idea 😃
If possible, I think it would be even better to have a single ShowCase page, with a state-based menu to choose the active component to display (useActionState, useFormStatus...) : this would enrich the showcase without adding to the React route declaration. What do you think @harshneyy ?
That's a great idea! I agree that a single showcase page would be much better. I can definitely build that. I'll get started on it. @rocambille