Skip to content

Instantly share code, notes, and snippets.

@PatrickJS
Created January 29, 2024 01:41
Show Gist options
  • Select an option

  • Save PatrickJS/51155d4c84bf773847c42f4fb4559e72 to your computer and use it in GitHub Desktop.

Select an option

Save PatrickJS/51155d4c84bf773847c42f4fb4559e72 to your computer and use it in GitHub Desktop.
<BlogIndex> <-- readDir
<RefreshButton />
<Toggle>
<ArticlePreview filename="something.mdx"> <-- read file
first 50 chars
</ArticlePreview>
</Toggle>
<Toggle>
<ArticlePreview filename="something.mdx"> <-- read file
first 50 chars
</ArticlePreview>
</Toggle>
<Toggle>
<ArticlePreview filename="something.mdx"> <-- read file
first 50 chars
</ArticlePreview>
</Toggle>
</BlogIndex>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment