Skip to content

Commit f76f1e5

Browse files
Improve formatting of documentation note regarding React component returns
1 parent 837921c commit f76f1e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/javascript/render-functions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const MyComponent = (props, _railsContext) => {
1414
};
1515
```
1616

17-
> [!NOTE] Ensure to return a React component (a function or class) and not a React element (the result of calling `React.createElement` or JSX).
17+
> [!NOTE]
18+
> Ensure to return a React component (a function or class) and not a React element (the result of calling `React.createElement` or JSX).
1819
1920
### 2. Objects with `renderedHtml` string property
2021

0 commit comments

Comments
 (0)