Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate state from component examples in Inputs #110

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

technophile-04
Copy link
Collaborator

Description:

Earlier our example looked like this:

image

And the markdown fromatter in docs used to add semicolon ; automatically at a the end component example since it was not able distinguish b/w plain typescript code and TSX (component)

Separate the state initialization and component example code block. This is also handy when copy pasting things from docs. Since state and component lives at different places in code it's easy to copy and past one by one

But feel free to suggest any other alternative, no strong opinion on this 🙌

Copy link

vercel bot commented Dec 18, 2024

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

Name Status Preview Comments Updated (UTC)
scaffold-eth-2-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2024 6:48am

Copy link
Collaborator

@Pabl0cks Pabl0cks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! Makes much more sense 🙏♥

@Pabl0cks Pabl0cks merged commit db92d14 into main Dec 18, 2024
3 checks passed
@Pabl0cks Pabl0cks deleted the components-example-breakdown branch December 18, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants