Skip to content

Commit fe7763b

Browse files
authored
Apply suggestions from code review
1 parent d6721a3 commit fe7763b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

reusable-snippets.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ import { myName, myObject } from '/snippets/path/to/custom-variables.mdx';
9696
Hello, my name is {myName} and I like {myObject.fruit}.
9797
```
9898

99-
### JSX Snippets
99+
### JSX snippets
100100

101-
1. Export a JSX component from your `.jsx` snippet file ([support React components](/react-components)):
101+
1. Export a JSX component from your snippet file. (See [React components](/react-components) for more information):
102102

103103
```js icon=square-js snippets/my-jsx-snippet.jsx
104104
export const MyJSXSnippet = () => {
@@ -110,9 +110,9 @@ export const MyJSXSnippet = () => {
110110
}
111111
```
112112

113-
<Warning>
114-
Important: When creating JSX snippets, use arrow function syntax (=>) rather than function declarations. The `function` keyword is not supported in this context.
115-
</Warning>
113+
<Note>
114+
Important: When creating JSX snippets, use arrow function syntax (`=>`) rather than function declarations. The `function` keyword is not supported in this context.
115+
</Note>
116116

117117
2. Import the snippet from your destination file and use the component:
118118

0 commit comments

Comments
 (0)