start-express-react icon indicating copy to clipboard operation
start-express-react copied to clipboard

Suggestion: Add Code Snippets to Showcase Pages

Open harshneyy opened this issue 1 year ago • 2 comments

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.

harshneyy avatar Oct 04 '25 11:10 harshneyy

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 ?

rocambille avatar Oct 04 '25 16:10 rocambille

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

harshneyy avatar Oct 04 '25 16:10 harshneyy