File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ export interface HTMLReactParserOptions {
13
13
}
14
14
15
15
/**
16
- * Converts HTML string to React elements .
16
+ * Converts HTML string to JSX element(s) .
17
17
*
18
- * @param html - The HTML string to parse to JSX.
18
+ * @param html - The HTML string to parse to JSX element(s) .
19
19
* @param options - The parser options.
20
- * @return - When parsed with HTML string, returns React elements; otherwise, returns string or empty array .
20
+ * @return - Single or array of JSX elements.
21
21
*/
22
22
declare function HTMLReactParser (
23
23
html : string ,
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import { HTMLReactParserOptions } from '..';
4
4
import { DomElement } from 'domhandler' ;
5
5
6
6
/**
7
- * Converts DOM nodes to React elements .
7
+ * Converts DOM nodes to JSX element(s) .
8
8
*
9
- * @param nodes - A list of formatted DomNodes to convert to JSX.
9
+ * @param nodes - An array of DomNodes to convert to JSX element(s) .
10
10
* @param options - Options to use when converting to JSX.
11
- * @returns JSX.Element or an array of JSX.Elements .
11
+ * @returns Single or array of JSX elements .
12
12
*/
13
13
export default function domToReact (
14
14
nodes : DomElement [ ] ,
You can’t perform that action at this time.
0 commit comments