We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312a565 commit 76663c3Copy full SHA for 76663c3
README.md
@@ -437,6 +437,20 @@ Migrated to TypeScript. CommonJS imports require the `.default` key:
437
const parse = require('html-react-parser').default;
438
```
439
440
+If you're getting the error:
441
+
442
+```
443
+Argument of type 'ChildNode[]' is not assignable to parameter of type 'DOMNode[]'.
444
445
446
+Then use type assertion:
447
448
+```ts
449
+domToReact(domNode.children as DOMNode[], options);
450
451
452
+See [#1126](https://github.com/remarkablemark/html-react-parser/issues/1126#issuecomment-1784188447).
453
454
### v4
455
456
[htmlparser2](https://github.com/fb55/htmlparser2) has been upgraded to [v9](https://github.com/fb55/htmlparser2/releases/tag/v9.0.0).
0 commit comments