cloudflare/vinext

Public

mirrored from https://github.com/cloudflare/vinextAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.0.9

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

examples/nextra-docs-template/app/content/another.mdx

19lines · modecode

1# Another Page
2
3This page demonstrates using React components inside MDX, including interactive client components with state.
4
5## Code Example
6
7```js
8let a = 1;
9
10console.log(a);
11```
12
13## Inline Component
14
15You can define React components directly inside MDX files. Here's a counter built with `useState`:
16
17## External Component
18
19Components can also be imported from separate files and used in MDX. This counter component is imported from `components/counters.tsx`:
20