You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Improve language clarity and conciseness throughout
- Simplify and tighten explanatory text
- Fix capitalization in performance best practices
- Remove redundant phrases for better flow
- Enhance readability and user experience
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
[React components](https://react.dev) are a powerful way to create interactive and reusable elements in your documentation.
11
-
12
-
You can use React directly in your MDX files without any additional setup.
10
+
[React components](https://react.dev) are a powerful way to create interactive and reusable elements in your documentation. Use React directly in your MDX files without any additional setup.
The `Counter` component can then be used in your MDX files like this:
35
+
Use the `Counter` component in your MDX files like this:
38
36
39
37
```mdx
40
38
<Counter />
41
39
```
42
40
43
-
And the component will be rendered as a React component in the MDX file.
41
+
The component renders as an interactive React component in the MDX file.
44
42
45
43
<Counter />
46
44
@@ -53,10 +51,10 @@ import { ColorGenerator } from "/snippets/color-generator.jsx"
53
51
```
54
52
55
53
<Warning>
56
-
But unlike regular React, you can't import components from every MDX file. Re-usable components can only be referenced from MDX files within the `snippets` folder.
54
+
Unlike regular React, you can't import components from every MDX file. Reusable components can only be referenced from MDX files within the `snippets` folder.
57
55
</Warning>
58
56
59
-
After importing the component, you can use it in your MDX files like this:
57
+
After importing the component, use it in your MDX files like this:
60
58
61
59
```mdx
62
60
<ColorGenerator />
@@ -66,7 +64,7 @@ Learn more about [reusable snippets](/reusable-snippets).
66
64
67
65
### Complex Example
68
66
69
-
You can also build much more complex components. Here's an example of a color generator component that uses multiple React hooks:
67
+
You can build much more complex components. Here's an example of a color generator component that uses multiple React hooks:
0 commit comments